From e684e1bce6ac55607d0612a3f99031c7dfbdfc90 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 10 Jul 2020 11:23:15 -0400 Subject: fixed tests --- tests/tests.c | 6 +++--- 1 file 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); -- cgit v1.2.3