Skip to content

Commit 0a1ae35

Browse files
authored
Merge pull request #9666 from ChrisDryden/fix-inotify-dir-recreate-test
fix: patch inotify-dir-recreate test for notify crate's threaded inotify
1 parent ae3c51f commit 0a1ae35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

util/build-gnu.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ sed -i -e "s|---dis ||g" tests/tail/overlay-headers.sh
223223
# Do not FAIL, just do a regular ERROR
224224
"${SED}" -i -e "s|framework_failure_ 'no inotify_add_watch';|fail=1;|" tests/tail/inotify-rotate-resources.sh
225225

226+
# The notify crate makes inotify_add_watch calls in a background thread, so strace needs -f to follow threads.
227+
# Also remove the HAVE_INOTIFY header check since that's for C builds.
228+
"${SED}" -i -e "s|grep '^#define HAVE_INOTIFY 1' \"\$CONFIG_HEADER\" >/dev/null && is_local_dir_ \. |is_local_dir_ . |" \
229+
-e "s|strace -e inotify_add_watch|strace -f -e inotify_add_watch|" \
230+
tests/tail/inotify-dir-recreate.sh
231+
226232
test -f "${UU_BUILD_DIR}/getlimits" || cp src/getlimits "${UU_BUILD_DIR}"
227233

228234
# pr produces very long log and this command isn't super interesting

0 commit comments

Comments
 (0)