Debian Codegraph @

util/gnu-patches/tests_du_move_dir_while_traversing.patch

raw
1 Index: gnu/tests/du/move-dir-while-traversing.sh
2 ===================================================================
3 --- gnu.orig/tests/du/move-dir-while-traversing.sh
4 +++ gnu/tests/du/move-dir-while-traversing.sh
5 @@ -91,9 +91,7 @@ retry_delay_ nonempty .1 5 || fail=1
6 # Before coreutils-8.10, du would abort.
7 returns_ 1 du -a $t d2 2> err || fail=1
8
9 -# check for the new diagnostic
10 -printf "du: fts_read failed: $t/3/a/b: No such file or directory\n" > exp \
11 - || fail=1
12 -compare exp err || fail=1
13 +# check that it doesn't crash
14 +grep -Pq "^du: cannot read directory '$t/3/a/b.*': No such file or directory" err || fail=1
15
16 Exit $fail