]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: run unittests with newlines in /proc/cmdline
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Dec 2019 13:20:35 +0000 (14:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:51:29 +0000 (11:51 +0100)
This should help catch this class of errors.

test/TEST-24-UNIT-TESTS/test.sh

index 251ac9ef9be26f77d5185cccad6ca59a62d80017..a3a911c1b2e3c1981bc50eee8bc9566f0b471d2d 100755 (executable)
@@ -3,6 +3,14 @@ set -e
 TEST_DESCRIPTION="Run unit tests under containers"
 RUN_IN_UNPRIVILEGED_CONTAINER=yes
 
+# embed some newlines in the kernel command line to stress our test suite
+KERNEL_APPEND="
+
+frobnicate!
+
+$KERNEL_APPEND
+"
+
 . $TEST_BASE_DIR/test-functions
 
 check_result_nspawn() {