mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: add a test case for recent env fix
* tests/misc/env-S.pl: Add a test case for recent commit ec6904f0.
This commit is contained in:
1 parent
f20797f1d7
commit
9f1bda18f2
1 file changed
+4
@@ -60,6 +60,10 @@ my @Tests =
|
||||
# to env, resulting in two arguments ("A" <whitespace> "B").
|
||||
['t3', qq[-S'printf x%sx\\n A\tB'], {OUT=>"xAx\nxBx"}],
|
||||
['t4', qq[-S'printf x%sx\\n A \t B'], {OUT=>"xAx\nxBx"}],
|
||||
# Ensure \v\f\r\n treated like other whitespace.
|
||||
# From 8.30 - 8.32 these would introduce arguments to printf,
|
||||
# and also crash ASAN builds with out of bounds access.
|
||||
['t5', qq[-S'printf x%sx\\n A \t B \013\f\r\n'], {OUT=>"xAx\nxBx"}],
|
||||
|
||||
|
||||
# Test empty strings
|
||||
|
||||
Reference in new issue
Block a user