tests: explicitly test --print-provides with malformed versions

feature/tap-sh
Ariadne Conill 2019-07-12 06:37:46 -05:00
parent c10f69994b
commit a91e0bf215
1 changed files with 9 additions and 1 deletions

View File

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