tests: add testcase for #140

feature/tap-sh
William Pitcock 2017-09-23 00:08:12 -05:00
parent 67dd48a343
commit 95b68f7c02
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Name: escaped-backslash
Version: 1
Description: test package for backslash escape scenario
Cflags: -IC:\\A

View File

@ -13,6 +13,7 @@ tests_init \
tilde_quoting \ tilde_quoting \
paren_quoting \ paren_quoting \
multiline_field \ multiline_field \
escaped_backslash \
flag_order_1 \ flag_order_1 \
flag_order_2 \ flag_order_2 \
flag_order_3 \ flag_order_3 \
@ -112,6 +113,14 @@ multiline_field_body()
pkgconf --list-all pkgconf --list-all
} }
escaped_backslash_body()
{
atf_check \
-e ignore \
-o inline:"-IC:\\\\\\\\A \n" \
pkgconf --with-path=${selfdir}/lib1 --cflags escaped-backslash
}
quoted_body() quoted_body()
{ {
export PKG_CONFIG_PATH="${selfdir}/lib1" export PKG_CONFIG_PATH="${selfdir}/lib1"