diff --git a/test/run-benchmarks.c b/test/run-benchmarks.c index 6e42623d..980c9be8 100644 --- a/test/run-benchmarks.c +++ b/test/run-benchmarks.c @@ -33,8 +33,7 @@ static int maybe_run_test(int argc, char **argv); int main(int argc, char **argv) { - if (platform_init(argc, argv)) - return EXIT_FAILURE; + platform_init(argc, argv); switch (argc) { case 1: return run_tests(1); diff --git a/test/run-tests.c b/test/run-tests.c index 3a6452ff..e5e75e17 100644 --- a/test/run-tests.c +++ b/test/run-tests.c @@ -59,9 +59,7 @@ int main(int argc, char **argv) { } #endif - if (platform_init(argc, argv)) - return EXIT_FAILURE; - + platform_init(argc, argv); argv = uv_setup_args(argc, argv); switch (argc) { diff --git a/test/runner-unix.c b/test/runner-unix.c index 7a5fa945..b7ca1f85 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -67,13 +67,12 @@ void notify_parent_process(void) { /* Do platform-specific initialization. */ -int platform_init(int argc, char **argv) { +void platform_init(int argc, char **argv) { /* Disable stdio output buffering. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); signal(SIGPIPE, SIG_IGN); snprintf(executable_path, sizeof(executable_path), "%s", argv[0]); - return 0; } diff --git a/test/runner-win.c b/test/runner-win.c index e69b7447..8c2a00b8 100644 --- a/test/runner-win.c +++ b/test/runner-win.c @@ -43,7 +43,7 @@ /* Do platform-specific initialization. */ -int platform_init(int argc, char **argv) { +void platform_init(int argc, char **argv) { /* Disable the "application crashed" popup. */ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); @@ -67,8 +67,6 @@ int platform_init(int argc, char **argv) { setvbuf(stderr, NULL, _IONBF, 0); strcpy(executable_path, argv[0]); - - return 0; } diff --git a/test/runner.h b/test/runner.h index ddb1e417..6801564f 100644 --- a/test/runner.h +++ b/test/runner.h @@ -132,7 +132,7 @@ void print_lines(const char* buffer, size_t size, FILE* stream); */ /* Do platform-specific initialization. */ -int platform_init(int argc, char** argv); +void platform_init(int argc, char** argv); /* Invoke "argv[0] test-name [test-part]". Store process info in *p. Make sure * that all stdio output of the processes is buffered up. */