tests: add test for flag whitespace parsing

Ref: https://github.com/pkgconf/pkgconf/issues/411
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
Ariadne Conill 2025-12-19 23:19:19 -08:00
parent a3da8f5cd4
commit 9e96c090dc

View File

@ -30,6 +30,7 @@ tests_init \
fragment_quoting_5 \
fragment_quoting_7 \
fragment_comment \
fragment_whitespace \
msvc_fragment_quoting \
msvc_fragment_render_cflags \
tuple_dequote \
@ -370,3 +371,13 @@ fragment_tree_body()
pkgconf --with-path="${selfdir}/lib1" --fragment-tree fragment-groups-2
}
fragment_whitespace_body()
{
atf_check \
-o inline:"'-I/includedir' [type I]\n\n" \
pkgconf --with-path="${selfdir}/lib1" --fragment-tree flag-whitespace-2
atf_check \
-o inline:"'-I/includedir' [type I]\n\n" \
pkgconf --with-path="${selfdir}/lib1" --fragment-tree flag-whitespace
}