summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-26 23:22:59 +0100
committerGitHub <noreply@github.com>2023-04-26 23:22:59 +0100
commit68b12e2d568161660ddc9cf32baeb50bd293984c (patch)
treec1a74e7bdd9eed052b9a0134572423d4e3af1cab /test
parent8c9f0d83c2299a5bc3964fd6794ca8d8255b3602 (diff)
parentcf636aa59eb8c848ed04d5b08aac0acf3f6683d9 (diff)
downloadsystemd-68b12e2d568161660ddc9cf32baeb50bd293984c.tar.gz
Merge pull request #27421 from bluca/coredump_filter
CoredumpFilter: fix stack overflow and invalid assignment with 'all'
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-74.coredump.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/units/testsuite-74.coredump.sh b/test/units/testsuite-74.coredump.sh
index 3910abe0ec..0e5d050f45 100755
--- a/test/units/testsuite-74.coredump.sh
+++ b/test/units/testsuite-74.coredump.sh
@@ -153,6 +153,9 @@ timeout 30 bash -c "while [[ \$(coredumpctl list -q --no-legend $$ | wc -l) -eq
coredumpctl info "$$"
coredumpctl info COREDUMP_HOSTNAME="mymachine"
+# This used to cause a stack overflow
+systemd-run -t --property CoredumpFilter=all ls /tmp
+systemd-run -t --property CoredumpFilter=default ls /tmp
(! coredumpctl --hello-world)
(! coredumpctl -n 0)