summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-11 17:34:11 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-11 17:34:11 +0000
commitaba9191ab3ef0699b0f9507ee3d03161f9ee7771 (patch)
tree9f3e8cb2b1dc3209bce2746305251ba44ff5f688
parentd2461482caf9e93d6e2bc7ff17567102f635211a (diff)
Adding some more things yet again.
-rw-r--r--man/zc.10
-rw-r--r--src/main.c4
-rwxr-xr-xtests/run_tests.sh2
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
diff --git a/src/main.c b/src/main.c
index 33333be..602f06b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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