X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/a41aa156f28753613f38924fc856d3dc992cfc56..da87235fd91665373a44dbc75b1750deaaf81abe:/tests/stress.at diff --git a/tests/stress.at b/tests/stress.at index 3ee72d9..a8e9500 100644 --- a/tests/stress.at +++ b/tests/stress.at @@ -96,27 +96,8 @@ AT_CLEANUP # Check that we can parse declarations with more than 10000 specifiers. AT_SETUP([Excessive specifiers]) -s="const" -for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do - AS_VAR_APPEND([s], [" $s"]) -done - -cat >test.dat <>test.dat <test.dat || exit 77 +cdecl99 -f test.dat], [0], [[type const int type const int const int @@ -135,14 +116,6 @@ AT_DATA([check.awk], BEGIN { FS = "@"; runstart = 0; } END { finish_run(NR); } -gsub(/,[^,)]*/, "~") { - while (match($0, /~+/) > 0) { - l = substr($0, 1, RSTART-1); - r = substr($0, RSTART+RLENGTH); - $0 = l ", [plus " RLENGTH " more parameters]" r; - } -} - $0 != lastline { finish_run(NR-1); lastline = $0; @@ -157,24 +130,21 @@ function finish_run(nr) { } ]]) -a="a" -for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do - AS_VAR_APPEND([a], [",$a"]) -done - -cat >test.dat <test.out; status=$?; -$AWK -f check.awk test.out +AT_CHECK([gunzip -c "$srcdir/tests/data/manydecl.gz" >test.dat || exit 77 +cdecl99 -f test.dat >test.out; status=$?; +tr