tests: add regression test for billion-laughs

stable/1.8.x
Ariadne Conill 2023-01-20 22:11:00 +00:00
parent 81cc9b3e6d
commit 0b5f360bce
1 changed files with 8 additions and 1 deletions

View File

@ -28,7 +28,8 @@ tests_init \
malformed_1 \
malformed_quoting \
explicit_sysroot \
empty_tuple
empty_tuple \
billion_laughs
# sysroot_munge \
@ -251,3 +252,9 @@ empty_tuple_body()
atf_check -o inline:"\n" \
pkgconf --with-path="${selfdir}/lib1" --cflags empty-tuple
}
billion_laughs_body()
{
atf_check -o inline:"warning: truncating very long variable to 64KB\nwarning: truncating very long variable to 64KB\nwarning: truncating very long variable to 64KB\nwarning: truncating very long variable to 64KB\nwarning: truncating very long variable to 64KB\n" \
pkgconf --with-path="${selfdir}/lib1" --validate billion-laughs
}