diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:34:11 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:34:11 +0000 |
| commit | aba9191ab3ef0699b0f9507ee3d03161f9ee7771 (patch) | |
| tree | 9f3e8cb2b1dc3209bce2746305251ba44ff5f688 | |
| parent | d2461482caf9e93d6e2bc7ff17567102f635211a (diff) | |
Adding some more things yet again.
| -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 |
