Fix a bug in testing framework where NUL is lost in parameter and add support for running only a single test in a conf file.

This commit is contained in:
brectanus
2007-12-20 19:22:13 +00:00
parent 246ed9cbc5
commit 9504be7d78
2 changed files with 17 additions and 7 deletions

View File

@@ -323,7 +323,7 @@ int main(int argc, const char * const argv[])
type = argv[1];
name = argv[2];
param_len = strlen(argv[3]);
param = apr_pmemdup(g_mp, argv[3], param_len);
param = (unsigned char *)apr_pstrmemdup(g_mp, argv[3], param_len);
unescape_inplace(param, &param_len);
if (argc >= 5) {
returnval = argv[4];