From 864d1a4f66a6324af03a361291687a6487dee59e Mon Sep 17 00:00:00 2001 From: licunlong Date: Sat, 2 Jul 2022 02:41:40 +0900 Subject: [PATCH] test: add a testcase for reexecuting with background mount job --- test/units/testsuite-60.sh | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/test/units/testsuite-60.sh b/test/units/testsuite-60.sh index 3c391c8efa6..186a05686ce 100755 --- a/test/units/testsuite-60.sh +++ b/test/units/testsuite-60.sh @@ -53,6 +53,45 @@ EOF } } +test_issue_23796() { + local mount_path mount_mytmpfs + + mount_path="$(command -v mount 2>/dev/null)" + mount_mytmpfs="${mount_path/\/bin/\/sbin}.mytmpfs" + cat >"$mount_mytmpfs" </run/systemd/system/tmp-hoge.mount </failed systemd-analyze log-level debug @@ -111,6 +150,9 @@ timeout 2m bash -c 'while systemctl list-units -t mount tmp-meow* | grep -q tmp- # test that handling of mount start jobs is delayed when /proc/self/mouninfo monitor is rate limited test_issue_20329 +# test for reexecuting with background mount job +test_issue_23796 + systemd-analyze log-level info touch /testok -- 2.47.3