summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-07-10 11:23:15 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-07-10 11:23:15 -0400
commite684e1bce6ac55607d0612a3f99031c7dfbdfc90 (patch)
treef2136740b071341859d4cfb159526d502da36270 /tests
parent1a8dc9e7389b5a0626da19339436df389ffad5a7 (diff)
fixed tests
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests.c b/tests/tests.c
index 3e49843..1de103e 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -85,11 +85,11 @@ int main(int argc, char **argv) {
printf("Running test %s... ", test);
fflush(stdout);
if (windows) {
- sprintf(command, "..\\toc %s.toc", test);
+ sprintf(command, "..\\toc -c %s.toc -o out.c", test);
} else if (valgrind) {
- sprintf(command, "valgrind -q --error-exitcode=1 ../toc %s.toc", test);
+ sprintf(command, "valgrind -q --error-exitcode=1 ../toc -c %s.toc -o out.c", test);
} else {
- sprintf(command, "../toc %s.toc", test);
+ sprintf(command, "../toc -c %s.toc -o out.c", test);
}
if (system(command)) {
fprintf(stderr, "%s (while compiling toc).\n", failed);