Skip to content

Commit

Permalink
tests/bfs: Add -noerror tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Aug 19, 2024
1 parent 9cf398b commit 46c3a6d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/bfs/L_noerror.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
loops
loops/broken
loops/deeply
loops/deeply/nested
loops/deeply/nested/dir
loops/file
loops/notdir
loops/skip
loops/skip/dir
loops/skip/loop
loops/symlink
1 change: 1 addition & 0 deletions tests/bfs/L_noerror.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bfs_diff -L loops -noerror
4 changes: 4 additions & 0 deletions tests/bfs/noerror.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
inaccessible
inaccessible/dir
inaccessible/file
inaccessible/link
1 change: 1 addition & 0 deletions tests/bfs/noerror.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bfs_diff inaccessible -noerror
2 changes: 2 additions & 0 deletions tests/bfs/noerror_nowarn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
stderr=$(invoke_bfs inaccessible -noerror -nowarn 2>&1 >/dev/null)
[ -z "$stderr" ]
2 changes: 2 additions & 0 deletions tests/bfs/noerror_warn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
stderr=$(invoke_bfs inaccessible -noerror -warn 2>&1 >/dev/null)
[ -n "$stderr" ]
File renamed without changes.

0 comments on commit 46c3a6d

Please sign in to comment.