tests: add test for malformed versions generating a diagnostic with --validate

feature/tap-sh
Ariadne Conill 2019-07-12 06:42:08 -05:00
parent a91e0bf215
commit 3740bfb6d7
1 changed files with 9 additions and 1 deletions

View File

@ -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
}