Declare proc_filename exactly once.

This commit is contained in:
Nigel Tao committed 2017-11-03 15:09:22 +11:00
1 parent e57c8d77db
commit aec5715f12
3 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -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);
}
+1 -2
View File
@@ -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);
}
+1 -1
View File
@@ -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__".