summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-25 15:40:21 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-28 01:01:28 -0500
commit2c8fdfce64f193c86f9a46303e56b5f6025c1387 (patch)
tree8b4baea96c54de274e568b030f67719f095dee8f
parent0cef329172e39b908ebab3ca1232770eb714de6a (diff)
downloadbfs-2c8fdfce64f193c86f9a46303e56b5f6025c1387.tar.xz
tests: Fix test_exit() to not depend on breadth-first ordering
-rwxr-xr-xtests.sh2
-rw-r--r--tests/test_exit.out15
2 files changed, 1 insertions, 16 deletions
diff --git a/tests.sh b/tests.sh
index 4afe094..0e86904 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1771,7 +1771,7 @@ function test_exit() {
return 1
fi
- bfs_diff basic -name bar -exit -o -print
+ bfs_diff basic/g -print -name g -exit
}
function test_printx() {
diff --git a/tests/test_exit.out b/tests/test_exit.out
index b79fef1..cf4d5a9 100644
--- a/tests/test_exit.out
+++ b/tests/test_exit.out
@@ -1,16 +1 @@
-basic
-basic/a
-basic/b
-basic/c
-basic/e
basic/g
-basic/i
-basic/j
-basic/k
-basic/l
-basic/c/d
-basic/e/f
-basic/g/h
-basic/j/foo
-basic/k/foo
-basic/l/foo