From 95b68f7c024af862a1cb059b7ea3be6d0ef541fd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 23 Sep 2017 00:08:12 -0500 Subject: [PATCH] tests: add testcase for #140 --- tests/lib1/escaped-backslash.pc | 4 ++++ tests/parser.sh | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/lib1/escaped-backslash.pc 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"