diff options
| -rw-r--r-- | man/zc.1 | 0 | ||||
| -rw-r--r-- | src/main.c | 4 | ||||
| -rwxr-xr-x | tests/run_tests.sh | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/man/zc.1 b/man/zc.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/man/zc.1 @@ -292,8 +292,8 @@ int main(int argc, char **argv) char run_cmd[2048]; sprintf(run_cmd, "./%s", outfile); ret = system(run_cmd); - // Clean up executable if temp run? - // ZPrep behavior: keeps it. + // Clean up executable + remove(outfile); return ret; } diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 0578681..8c3c7f7 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -40,8 +40,10 @@ echo "----------------------------------------" if [ $FAILED -ne 0 ]; then echo -e "Failed tests:$FAILED_TESTS" + rm -f a.out out.c exit 1 else echo "All tests passed!" + rm -f a.out out.c exit 0 fi |
