diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_diff.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_diff.sh b/tests/test_diff.sh index a66639e..44e00d0 100644 --- a/tests/test_diff.sh +++ b/tests/test_diff.sh @@ -6,7 +6,10 @@ if [[ $? -ne 0 ]]; then exit 1 fi gcc -Wl,-z,noexecstack -o a.out main.s -./a.out > output +if [[ ! -f input ]]; then + touch input +fi +./a.out < input > output exit_code=$? if [[ $exit_code -ne 0 ]]; then |
