X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/e031b4f0220432aef6e1864ea6359353dbd8aed3..9628bd06223d7e1730574ca0c93d76b1d39856b4:/tests/crossparse-c-random.sh diff --git a/tests/crossparse-c-random.sh b/tests/crossparse-c-random.sh index 03ec30f..8fb1b63 100755 --- a/tests/crossparse-c-random.sh +++ b/tests/crossparse-c-random.sh @@ -8,7 +8,7 @@ # This is free software: you are free to do what the fuck you want to. # There is NO WARRANTY, to the extent permitted by law. -: "${RANDOMSEED=$RANDOM}" "${TESTITER=100}" +: "${RANDOMSEED=$RANDOM}" "${TESTITER=500}" randomdecl=test/randomdecl$EXEEXT crossparse=test/crossparse$EXEEXT @@ -21,7 +21,10 @@ proc() { while read decl do count=`expr $count + 1` - $crossparse "$decl" || { result=fail; break; } + $crossparse "$decl" || { result=fail + printf 'original input: %s\n' "$decl" 1>&2 + break + } done echo "result=$result"