]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-74-AUX: add reproducer of issue #35746
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Dec 2024 03:06:24 +0000 (12:06 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 28 Dec 2024 12:02:13 +0000 (12:02 +0000)
Addresses https://github.com/systemd/systemd/pull/35752#pullrequestreview-2523080117.

test/units/TEST-74-AUX-UTILS.run.sh

index 83ae352943f6975e4d10cb6770ff4d9348c3d0f2..d47550c8016f83cf0dc6fe529795c54aa74503c7 100755 (executable)
@@ -271,6 +271,11 @@ if [[ -e /usr/lib/pam.d/systemd-run0 ]] || [[ -e /etc/pam.d/systemd-run0 ]]; the
     # Validate when we invoke run0 without a tty, that depending on --pty it either allocates a tty or not
     assert_neq "$(run0 --pty tty < /dev/null)" "not a tty"
     assert_eq "$(run0 --pipe tty < /dev/null)" "not a tty"
+
+    # For issue #35746
+    for _ in {0..10}; do
+        run0 /usr/lib/systemd/systemd-pcrlock
+    done
 fi
 
 # Tests whether intermediate disconnects corrupt us (modified testcase from https://github.com/systemd/systemd/issues/27204)