summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.avv@gmail.com>2016-09-30 12:12:04 +0100
committerGitHub <noreply@github.com>2016-09-30 12:12:04 +0100
commitdd86a9c5ad513f801923e869b61ab3afcc4b7f77 (patch)
treeb19df5c449a63d02fee32578a48ee2dc3287a081
parent2b809753b32e408490b8159b774b79ae8e3c0661 (diff)
parent8acbea7f907d5c0ef72b3510f2d462a7679bdbba (diff)
downloadsandboxlib-dd86a9c5ad513f801923e869b61ab3afcc4b7f77.tar.gz
Merge pull request #23 from CodethinkLabs/leeming/correct-tests
Correcting a broken test
-rw-r--r--.gitignore2
-rw-r--r--tests/programs.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6a93993
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.pyc
+.*/
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]);