summaryrefslogtreecommitdiffstats
path: root/tests/posix/L_loops.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-23 11:42:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-23 13:00:21 -0400
commitde8e0fbb8c1e59b3f1af72a07477b63a8f0bbc75 (patch)
tree4ab177ebe2342103eeca4d721d6a810b58ef99fc /tests/posix/L_loops.sh
parent4c7a49a83e082a7bfff85a9305882f0912655123 (diff)
downloadbfs-de8e0fbb8c1e59b3f1af72a07477b63a8f0bbc75.tar.xz
tests: Fix Bash 3 compatibility
Diffstat (limited to 'tests/posix/L_loops.sh')
-rw-r--r--tests/posix/L_loops.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/posix/L_loops.sh b/tests/posix/L_loops.sh
index 1314401..01b7efc 100644
--- a/tests/posix/L_loops.sh
+++ b/tests/posix/L_loops.sh
@@ -1,4 +1,4 @@
# POSIX says it's okay to either stop or keep going on seeing a filesystem
# loop, as long as a diagnostic is printed
-! errors=$(invoke_bfs -L loops 2>&1 >/dev/null)
-[ -n "$errors" ]
+invoke_bfs -L loops >/dev/null 2>"$OUT" && fail
+test -s "$OUT"