mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Declare proc_filename exactly once.
This commit is contained in:
1 parent
e57c8d77db
commit
aec5715f12
3 files changed
+3
-5
No files matched your search
+1
-2
@@ -40,8 +40,6 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
|
|||||||
#include "../../../gen/c/std/flate.c"
|
#include "../../../gen/c/std/flate.c"
|
||||||
#include "../testlib/testlib.c"
|
#include "../testlib/testlib.c"
|
||||||
|
|
||||||
const char* proc_filename = "std/flate.c";
|
|
||||||
|
|
||||||
// ---------------- Golden Tests
|
// ---------------- Golden Tests
|
||||||
|
|
||||||
// The src_offset0 and src_offset1 magic numbers come from:
|
// The src_offset0 and src_offset1 magic numbers come from:
|
||||||
@@ -943,5 +941,6 @@ proc benches[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
proc_filename = "std/flate.c";
|
||||||
return test_main(argc, argv, tests, benches);
|
return test_main(argc, argv, tests, benches);
|
||||||
}
|
}
|
||||||
+1
-2
@@ -40,8 +40,6 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
|
|||||||
#include "../../../gen/c/std/gif.c"
|
#include "../../../gen/c/std/gif.c"
|
||||||
#include "../testlib/testlib.c"
|
#include "../testlib/testlib.c"
|
||||||
|
|
||||||
const char* proc_filename = "std/gif.c";
|
|
||||||
|
|
||||||
// ---------------- Basic Tests
|
// ---------------- Basic Tests
|
||||||
|
|
||||||
void test_basic_bad_argument_out_of_range() {
|
void test_basic_bad_argument_out_of_range() {
|
||||||
@@ -782,5 +780,6 @@ proc benches[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
proc_filename = "std/gif.c";
|
||||||
return test_main(argc, argv, tests, benches);
|
return test_main(argc, argv, tests, benches);
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,7 @@ char fail_msg[65536] = {0};
|
|||||||
|
|
||||||
int tests_run = 0;
|
int tests_run = 0;
|
||||||
|
|
||||||
const char* proc_filename;
|
const char* proc_filename = "";
|
||||||
const char* proc_funcname = "";
|
const char* proc_funcname = "";
|
||||||
|
|
||||||
// The order matters here. Clang also defines "__GNUC__".
|
// The order matters here. Clang also defines "__GNUC__".
|
||||||
|
|||||||
Reference in new issue
Block a user