From 312b4e51a9dd07161d44d8f606e5428ed4a60bc7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 12 Jul 2019 06:22:41 -0500 Subject: [PATCH] tests: add test for malformed version handling --- tests/parser.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/parser.sh b/tests/parser.sh index 31a00c3..33d9061 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -31,7 +31,8 @@ tests_init \ fragment_quoting_7 \ msvc_fragment_quoting \ msvc_fragment_render_cflags \ - tuple_dequote + tuple_dequote \ + version_with_whitespace comments_body() { @@ -283,3 +284,10 @@ tuple_dequote_body() -o inline:'-L/test/lib -lfoo \n' \ pkgconf --with-path="${selfdir}/lib1" --libs tuple-quoting } + +version_with_whitespace_body() +{ + atf_check \ + -o inline:'3.922\n' \ + pkgconf --with-path="${selfdir}/lib1" --modversion malformed-version +}