diff --git a/tests/lib1/escaped-backslash.pc b/tests/lib1/escaped-backslash.pc new file mode 100644 index 0000000..6abcbb0 --- /dev/null +++ b/tests/lib1/escaped-backslash.pc @@ -0,0 +1,4 @@ +Name: escaped-backslash +Version: 1 +Description: test package for backslash escape scenario +Cflags: -IC:\\A diff --git a/tests/parser.sh b/tests/parser.sh index 6ae0db0..849ef23 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -13,6 +13,7 @@ tests_init \ tilde_quoting \ paren_quoting \ multiline_field \ + escaped_backslash \ flag_order_1 \ flag_order_2 \ flag_order_3 \ @@ -112,6 +113,14 @@ multiline_field_body() 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() { export PKG_CONFIG_PATH="${selfdir}/lib1"