summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-50.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-10-19 16:23:28 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-10-19 16:23:28 +0200
commit4701425dd58f90f8bd51cc215916f7d7828e547f (patch)
treea7c47a1d3415fc011b636c00cdee6aebc0da2ec7 /test/units/testsuite-50.sh
parenttest: add a real-world state to the corpus (diff)
downloadsystemd-4701425dd58f90f8bd51cc215916f7d7828e547f.tar.xz
systemd-4701425dd58f90f8bd51cc215916f7d7828e547f.zip
test: add coverage for #29610
As reproducing it is actually pretty easy, with the benefit of hindsight: ~# systemd-run -P -p MountImages="/this/should/definitely/not/exist.img:/run/img2\:3:nosuid" false Running as unit: run-u42.service free(): double free detected in tcache 2
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-50.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh
index 4142e1ebbc..1a379ee061 100755
--- a/test/units/testsuite-50.sh
+++ b/test/units/testsuite-50.sh
@@ -674,4 +674,11 @@ if command -v mksquashfs >/dev/null 2>&1; then
(! test -f /tmp/test-50-confext/etc/waldo )
fi
+# Sneak in a couple of expected-to-fail invocations to cover
+# https://github.com/systemd/systemd/issues/29610
+(! systemd-run -P -p MountImages="/this/should/definitely/not/exist.img:/run/img2\:3:nosuid" false)
+(! systemd-run -P -p ExtensionImages="/this/should/definitely/not/exist.img" false)
+(! systemd-run -P -p RootImage="/this/should/definitely/not/exist.img" false)
+(! systemd-run -P -p ExtensionDirectories="/foo/bar /foo/baz" false)
+
touch /testok