int i, tests_run = 0, tests_failed = 0, option;
time_t now;
char *refdir_alloc = NULL;
-#if defined(_WIN32) && !defined(__CYGWIN__)
- char *testprg;
-#endif
const char *progname;
const char *tmp, *option_arg, *p;
char tmpdir[256];
#ifdef PROGRAM
if (testprog == NULL)
usage(progname);
-#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
/*
* command.com cannot accept the command used '/' with drive
* name such as c:/xxx/command.exe when use '|' pipe handling.
*/
- testprg = strdup(testprog);
- for (i = 0; testprg[i] != '\0'; i++) {
- if (testprg[i] == '/')
- testprg[i] = '\\';
+ {
+ char *testprg = strdup(testprog);
+ for (i = 0; testprg[i] != '\0'; i++) {
+ if (testprg[i] == '/')
+ testprg[i] = '\\';
+ }
+ testprog = testprg;
}
- testprog = testprg;
+#endif
#endif
/*