diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 13:06:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-23 13:06:44 -0400 |
commit | d2d5e5ad2e4b61493d27bfe8c9341fd81f703ae9 (patch) | |
tree | d2f69694f7a3bb7f3383b700ffe4f06188b493b6 /tests/bfs | |
parent | 62415c0d1530f271ce9d417fa075ac00b9473f1e (diff) | |
download | bfs-d2d5e5ad2e4b61493d27bfe8c9341fd81f703ae9.tar.xz |
tests/bfs/printf_color: Fix race condition
Invoking bfs in the top directory can lead it to explore other tests'
scratch directories, so explicitly exclude them.
Diffstat (limited to 'tests/bfs')
-rw-r--r-- | tests/bfs/printf_color.out | 1 | ||||
-rw-r--r-- | tests/bfs/printf_color.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/bfs/printf_color.out b/tests/bfs/printf_color.out index 6641e9a..77d21c3 100644 --- a/tests/bfs/printf_color.out +++ b/tests/bfs/printf_color.out @@ -1,4 +1,5 @@ [01;34m.[0m [01;34m$'./rainbow/\e[1m'[0m $'\e[0m' [01;34m$'./rainbow/\e[1m/'[0m$'\e[0m' [01;34m$'rainbow/\e[1m/'[0m$'\e[0m' +[01;34m.[0m [01;34m.[0m [01;34m.[0m [01;34m.[0m [01;34m.[0m [01;34m.[0m [01;34mrainbow[0m [01;34m./rainbow[0m [01;34mrainbow[0m [01;34m.[0m [01;34m./rainbow[0m [01;32mexec.sh[0m [01;34m./rainbow/[0m[01;32mexec.sh[0m [01;34mrainbow/[0m[01;32mexec.sh[0m [01;34m.[0m [01;34m./rainbow[0m [01;34m$'\e[1m'[0m [01;34m$'./rainbow/\e[1m'[0m [01;34m$'rainbow/\e[1m'[0m diff --git a/tests/bfs/printf_color.sh b/tests/bfs/printf_color.sh index 7bb38c2..3641ddb 100644 --- a/tests/bfs/printf_color.sh +++ b/tests/bfs/printf_color.sh @@ -1 +1 @@ -bfs_diff -color -path './rainbow*' -printf '%H %h %f %p %P %l\n' +bfs_diff -color -exclude \( -depth 1 -not -name rainbow \) -printf '%H %h %f %p %P %l\n' |