diff options
Diffstat (limited to 'src/test/test-strv.c')
-rw-r--r-- | src/test/test-strv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test-strv.c b/src/test/test-strv.c index 0b78086ea9..f343eab7c6 100644 --- a/src/test/test-strv.c +++ b/src/test/test-strv.c @@ -520,6 +520,10 @@ int main(int argc, char *argv[]) { test_strv_unquote(" \"x'\" ", STRV_MAKE("x'")); test_strv_unquote("a '--b=c \"d e\"'", STRV_MAKE("a", "--b=c \"d e\"")); + /* trailing backslashes */ + test_strv_unquote(" x\\\\", STRV_MAKE("x\\")); + test_invalid_unquote(" x\\"); + test_invalid_unquote("a --b='c \"d e\"''"); test_invalid_unquote("a --b='c \"d e\" '\""); test_invalid_unquote("a --b='c \"d e\"garbage"); |