From a91e0bf215bef64ca69c1ad75fb89d3dc6e851b5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 12 Jul 2019 06:37:46 -0500 Subject: [PATCH] tests: explicitly test --print-provides with malformed versions --- tests/parser.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/parser.sh b/tests/parser.sh index 33d9061..48c2945 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -32,7 +32,8 @@ tests_init \ msvc_fragment_quoting \ msvc_fragment_render_cflags \ tuple_dequote \ - version_with_whitespace + version_with_whitespace \ + version_with_whitespace_2 comments_body() { @@ -291,3 +292,10 @@ version_with_whitespace_body() -o inline:'3.922\n' \ pkgconf --with-path="${selfdir}/lib1" --modversion malformed-version } + +version_with_whitespace_2_body() +{ + atf_check \ + -o inline:'malformed-version = 3.922\n' \ + pkgconf --with-path="${selfdir}/lib1" --print-provides malformed-version +}