diff options
Diffstat (limited to 'tests/003.sh')
| -rw-r--r-- | tests/003.sh | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/003.sh b/tests/003.sh index 77a3886..4fa0b42 100644 --- a/tests/003.sh +++ b/tests/003.sh @@ -1,21 +1,5 @@ -cat <<'EOF' > main.c +bash ../../test_exit_code.sh 26 <<'EOF' int main() { return 2*3+4*5; } EOF - -"$p4dcc" < main.c > main.s -if [[ $? -ne 0 ]]; then - cat main.s >&2 - exit 1 -fi -gcc -Wl,-z,noexecstack -o a.out main.s -./a.out -exit_code=$? - -expected=26 - -if [[ ! $exit_code -eq $expected ]]; then - echo "expected $expected, but $exit_code" >&2 - exit 1 -fi |
