From: Yu Watanabe Date: Mon, 7 Apr 2025 20:46:20 +0000 (+0900) Subject: TEST-17-UDEV: fd may be >= 10 X-Git-Tag: v258-rc1~870^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F37042%2Fhead;p=thirdparty%2Fsystemd.git TEST-17-UDEV: fd may be >= 10 Follow-up for db5d89309a6df2b505c52d70bf5a638190777027. --- diff --git a/test/units/TEST-17-UDEV.watch.sh b/test/units/TEST-17-UDEV.watch.sh index bf82ac3712d..96a67f4c565 100755 --- a/test/units/TEST-17-UDEV.watch.sh +++ b/test/units/TEST-17-UDEV.watch.sh @@ -31,7 +31,7 @@ function check() { journalctl --sync # Check if the inotify watch fd is received from fd store. - journalctl -n 1 -q -u systemd-udevd.service --invocation=0 --grep 'Received inotify fd \(\d\) from service manager.' + journalctl -n 1 -q -u systemd-udevd.service --invocation=0 --grep 'Received inotify fd \(\d+\) from service manager.' # Check if there is no broken symlink chain. assert_eq "$(journalctl -n 1 -q -u systemd-udevd.service --invocation=0 --grep 'Found broken inotify watch' || :)" "" @@ -56,7 +56,7 @@ function check() { if ! journalctl -n 1 -q -u systemd-udevd.service --invocation=1 --grep 'Pushed inotify fd to service manager.'; then assert_eq "$(journalctl -n 1 -q -u systemd-udevd.service --invocation=1 --grep 'Failed to push inotify fd to service manager.' || :)" "" fi -if ! journalctl -n 1 -q -u systemd-udevd.service --invocation=2 --grep 'Received inotify fd \(\d\) from service manager.'; then +if ! journalctl -n 1 -q -u systemd-udevd.service --invocation=2 --grep 'Received inotify fd \(\d+\) from service manager.'; then assert_eq "$(journalctl -n 1 -q -u systemd-udevd.service --invocation=2 --grep 'Pushed inotify fd to service manager.' || :)" "" fi