summaryrefslogtreecommitdiff
path: root/tests/programs.py
diff options
context:
space:
mode:
authorAndrew Leeming <andrew.leeming@codethink.co.uk>2016-09-28 16:04:44 +0100
committerAndrew Leeming <andrew.leeming@codethink.co.uk>2016-09-28 17:05:52 +0100
commit8acbea7f907d5c0ef72b3510f2d462a7679bdbba (patch)
treeb19df5c449a63d02fee32578a48ee2dc3287a081 /tests/programs.py
parent2b809753b32e408490b8159b774b79ae8e3c0661 (diff)
downloadsandboxlib-8acbea7f907d5c0ef72b3510f2d462a7679bdbba.tar.gz
Correcting a broken testleeming/correct-tests
FILE_OR_DIRECTORY_EXISTS_TEST_PROGRAM previously fetched args[0] instead of args[1]. Program now checks the correct file when inside of the sandbox. Added in a simple .gitignore
Diffstat (limited to 'tests/programs.py')
-rw-r--r--tests/programs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/programs.py b/tests/programs.py
index c6f05ee..613438a 100644
--- a/tests/programs.py
+++ b/tests/programs.py
@@ -121,7 +121,7 @@ int main(int argc, char *argv[]) {
return 2;
}
- file = fopen(argv[0], "w");
+ file = fopen(argv[1], "w");
if (file == NULL) {
printf("Couldn't open %s for writing.", argv[1]);