From 3740bfb6d7ba7aed6e3085e4a2cafd6a16831ceb Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 12 Jul 2019 06:42:08 -0500 Subject: [PATCH] tests: add test for malformed versions generating a diagnostic with --validate --- tests/parser.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/parser.sh b/tests/parser.sh index 48c2945..a87d537 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -33,7 +33,8 @@ tests_init \ msvc_fragment_render_cflags \ tuple_dequote \ version_with_whitespace \ - version_with_whitespace_2 + version_with_whitespace_2 \ + version_with_whitespace_diagnostic comments_body() { @@ -299,3 +300,10 @@ version_with_whitespace_2_body() -o inline:'malformed-version = 3.922\n' \ pkgconf --with-path="${selfdir}/lib1" --print-provides malformed-version } + +version_with_whitespace_diagnostic_body() +{ + atf_check \ + -o match:warning \ + pkgconf --with-path="${selfdir}/lib1" --validate malformed-version +}