From dd25a95763e6ee52d40f4012ffeb2ce719f26b8d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Dec 2023 19:10:13 +0100 Subject: [PATCH] test: add minimal integration test coverage for uid0 tool --- test/units/testsuite-74.run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/testsuite-74.run.sh b/test/units/testsuite-74.run.sh index 2caca7a5a2a..d43d17ca612 100755 --- a/test/units/testsuite-74.run.sh +++ b/test/units/testsuite-74.run.sh @@ -227,5 +227,9 @@ B=$(systemd-run -q --wait --pipe -p ProtectProc=invisible cat /proc/version) assert_eq "$A" "$B" +# Check that invoking the tool under the uid0 alias name works +uid0 ls / +echo "$(uid0 echo foo)" = "foo" + umount /proc/version rm "$V"