Commit ebc6e844 authored by Paal Kvamme's avatar Paal Kvamme
Browse files

Make --no-exec the default for tests because the Azure SDK requires it. This...

Make --no-exec the default for tests because the Azure SDK requires it. This simplifies testing on Windows.
parent 5b3839ec
...@@ -152,7 +152,7 @@ int test_check__(int cond, const char* file, int line, const char* fmt, ...); ...@@ -152,7 +152,7 @@ int test_check__(int cond, const char* file, int line, const char* fmt, ...);
static char* test_argv0__ = NULL; static char* test_argv0__ = NULL;
static int test_count__ = 0; static int test_count__ = 0;
static int test_no_exec__ = 0; static int test_no_exec__ = 1;
static int test_no_summary__ = 0; static int test_no_summary__ = 0;
static int test_skip_mode__ = 0; static int test_skip_mode__ = 0;
...@@ -520,6 +520,7 @@ test_help__(void) ...@@ -520,6 +520,7 @@ test_help__(void)
printf("Options:\n"); printf("Options:\n");
printf(" -s, --skip Execute all unit tests but the listed ones\n"); printf(" -s, --skip Execute all unit tests but the listed ones\n");
printf(" --no-exec Do not execute unit tests as child processes\n"); printf(" --no-exec Do not execute unit tests as child processes\n");
printf(" --exec Execute unit tests as child processes\n");
printf(" --no-summary Suppress printing of test results summary\n"); printf(" --no-summary Suppress printing of test results summary\n");
printf(" -l, --list List unit tests in the suite and exit\n"); printf(" -l, --list List unit tests in the suite and exit\n");
printf(" -v, --verbose Enable more verbose output\n"); printf(" -v, --verbose Enable more verbose output\n");
...@@ -585,6 +586,8 @@ main(int argc, char** argv) ...@@ -585,6 +586,8 @@ main(int argc, char** argv)
test_skip_mode__ = 1; test_skip_mode__ = 1;
} else if(strcmp(argv[i], "--no-exec") == 0) { } else if(strcmp(argv[i], "--no-exec") == 0) {
test_no_exec__ = 1; test_no_exec__ = 1;
} else if(strcmp(argv[i], "--exec") == 0) {
test_no_exec__ = 0;
} else if(strcmp(argv[i], "--no-summary") == 0) { } else if(strcmp(argv[i], "--no-summary") == 0) {
test_no_summary__ = 1; test_no_summary__ = 1;
} else if(strcmp(argv[i], "--list") == 0 || strcmp(argv[i], "-l") == 0) { } else if(strcmp(argv[i], "--list") == 0 || strcmp(argv[i], "-l") == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment