From 39ce13d45c5881d84e2de98243052811e3648224 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Feb 2024 22:10:06 -0500 Subject: tests/bfs/D_opt: Don't rely on directory link counts Fixes: https://github.com/tavianator/bfs/issues/131 --- tests/bfs/D_opt.out | 11 ----------- tests/bfs/D_opt.sh | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/bfs/D_opt.out b/tests/bfs/D_opt.out index 3b461cf..6218a0c 100644 --- a/tests/bfs/D_opt.out +++ b/tests/bfs/D_opt.out @@ -1,18 +1,7 @@ basic/a basic/b -basic/c basic/c/d -basic/e basic/e/f -basic/g -basic/g/h -basic/i -basic/j basic/j/foo -basic/k -basic/k/foo basic/k/foo/bar -basic/l -basic/l/foo -basic/l/foo/bar basic/l/foo/bar/baz diff --git a/tests/bfs/D_opt.sh b/tests/bfs/D_opt.sh index d95cf86..c14fe70 100644 --- a/tests/bfs/D_opt.sh +++ b/tests/bfs/D_opt.sh @@ -1 +1 @@ -bfs_diff -D opt -nohidden -not \( -type b -o -type c \) -links -5 -links -10 -not -hidden basic +bfs_diff -D opt -nohidden -not \( -type c -o -type d \) -links -5 -links -10 -not -hidden basic -- cgit v1.2.3