summaryrefslogtreecommitdiffstats
path: root/tests/gnu
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-16 16:43:25 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-16 17:26:52 -0500
commite2b540c9e2a52500b17fa1005b26b2dd5a652c09 (patch)
tree148a9308e96f9cb86c30afd5743603cc364c9f99 /tests/gnu
parente82a7f51d4b4e90df868e5410a0445b009b54ff2 (diff)
downloadbfs-e2b540c9e2a52500b17fa1005b26b2dd5a652c09.tar.xz
tests: Fail early in bfs_diff if the diff fails
Otherwise, propagate the exit code from bfs
Diffstat (limited to 'tests/gnu')
-rw-r--r--tests/gnu/L_loops_continue.sh2
-rw-r--r--tests/gnu/printf_Y_error.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/gnu/L_loops_continue.sh b/tests/gnu/L_loops_continue.sh
index d4c95f1..55aeb33 100644
--- a/tests/gnu/L_loops_continue.sh
+++ b/tests/gnu/L_loops_continue.sh
@@ -1 +1 @@
-check_exit $EX_BFS bfs_diff -L loops
+! bfs_diff -L loops
diff --git a/tests/gnu/printf_Y_error.sh b/tests/gnu/printf_Y_error.sh
index e9a2083..3aa816e 100644
--- a/tests/gnu/printf_Y_error.sh
+++ b/tests/gnu/printf_Y_error.sh
@@ -5,4 +5,4 @@ ln -s foo/bar scratch/bar
chmod -x scratch/foo
trap "chmod +x scratch/foo" EXIT
-check_exit $EX_BFS bfs_diff scratch -printf '(%p) (%l) %y %Y\n'
+! bfs_diff scratch -printf '(%p) (%l) %y %Y\n'