]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-execute: Introduce tests for environment values containing newlines 8471/head
authorFilipe Brandenburger <filbranden@google.com>
Fri, 16 Mar 2018 23:30:42 +0000 (16:30 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 16 Mar 2018 23:31:17 +0000 (16:31 -0700)
commit9b796f3523aac1c55f39ee8eb07a1b2965aa884b
tree57d6ebb2ef3eedad5f145f35ee4ca54d4a6d4e6c
parentb4346b9a77bc6129dd3e73db0ea41e3ccd2b763b
test-execute: Introduce tests for environment values containing newlines

Also fix one case where the presence of a newline was used to generate
an invalid environment assignment.

Tested: with mkosi, which builds the local tree and run ninja tests.
src/test/test-execute.c
test/test-execute/exec-environmentfile.service
test/test-execute/exec-passenvironment-absent.service
test/test-execute/exec-passenvironment-empty.service
test/test-execute/exec-passenvironment-repeated.service
test/test-execute/exec-passenvironment.service