From: Frantisek Sumsal Date: Tue, 21 Feb 2023 18:30:58 +0000 (+0100) Subject: test: add coverage for #26483 X-Git-Tag: v254-rc1~1204^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26527%2Fhead;p=thirdparty%2Fsystemd.git test: add coverage for #26483 --- diff --git a/test/units/testsuite-26.sh b/test/units/testsuite-26.sh index 17b979238eb..f808e0ab43d 100755 --- a/test/units/testsuite-26.sh +++ b/test/units/testsuite-26.sh @@ -61,6 +61,9 @@ printf '%b' '[Service]\n' 'ExecStart=\n' 'ExecStart=sleep 10d' >"+4" EDITOR='mv' script -ec 'systemctl edit "$UNIT_NAME"' /dev/null printf '%s\n' '[Service]' 'ExecStart=' 'ExecStart=sleep 10d' | cmp - "/etc/systemd/system/$UNIT_NAME.d/override.conf" +# Double free when editing a template unit (#26483) +EDITOR='true' script -ec 'systemctl edit user@0' /dev/null + # Argument help systemctl --state help systemctl --signal help