diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-06 22:49:35 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-06 22:49:35 -0500 |
commit | b46da967104df09edcad706e5e8ef31326a113dd (patch) | |
tree | 2f5e10dff126bf590f552a5bd73410f1db8844cf /tests.sh | |
parent | 0f91c5861cacaeb17729b7727d07260273345393 (diff) |
bftw: Don't give up when following a broken symlink.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -36,6 +36,7 @@ function links_structure() { mkdir -p "$1/d/e" ln -s ../../d "$1/d/e/f" touchp "$1/d/e/g" + ln -s q "$1/d/e/h" } # Checks for any (order-independent) differences between bfs and find @@ -168,7 +169,12 @@ function test_0023() { find_diff -H "$1" -newer "$1/d/e/f" } -for i in {1..23}; do +function test_0024() { + links_structure "$1" + find_diff -H "$1/d/e/h" +} + +for i in {1..24}; do dir="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)" test="test_$(printf '%04d' $i)" "$test" "$dir" |