From 0b5f360bcefd504162ed72df74f95a541eaeab0a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 20 Jan 2023 22:11:00 +0000 Subject: [PATCH] tests: add regression test for billion-laughs --- tests/regress.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/regress.sh b/tests/regress.sh index 2a809ed..38b9c91 100755 --- a/tests/regress.sh +++ b/tests/regress.sh @@ -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 +}