diff --git a/test/c/std/flate.c b/test/c/std/flate.c index 27d3e00d..622a010a 100644 --- a/test/c/std/flate.c +++ b/test/c/std/flate.c @@ -40,8 +40,6 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the #include "../../../gen/c/std/flate.c" #include "../testlib/testlib.c" -const char* proc_filename = "std/flate.c"; - // ---------------- Golden Tests // The src_offset0 and src_offset1 magic numbers come from: @@ -943,5 +941,6 @@ proc benches[] = { }; int main(int argc, char** argv) { + proc_filename = "std/flate.c"; return test_main(argc, argv, tests, benches); } diff --git a/test/c/std/gif.c b/test/c/std/gif.c index 03149134..b958ab7a 100644 --- a/test/c/std/gif.c +++ b/test/c/std/gif.c @@ -40,8 +40,6 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the #include "../../../gen/c/std/gif.c" #include "../testlib/testlib.c" -const char* proc_filename = "std/gif.c"; - // ---------------- Basic Tests void test_basic_bad_argument_out_of_range() { @@ -782,5 +780,6 @@ proc benches[] = { }; int main(int argc, char** argv) { + proc_filename = "std/gif.c"; return test_main(argc, argv, tests, benches); } diff --git a/test/c/testlib/testlib.c b/test/c/testlib/testlib.c index 23802fea..51085a57 100644 --- a/test/c/testlib/testlib.c +++ b/test/c/testlib/testlib.c @@ -37,7 +37,7 @@ char fail_msg[65536] = {0}; int tests_run = 0; -const char* proc_filename; +const char* proc_filename = ""; const char* proc_funcname = ""; // The order matters here. Clang also defines "__GNUC__".