]> git.draconx.ca Git - cdecl99.git/blobdiff - tests/crossparse-c-random.sh
Don't generate invalid void function parameters in randomdecl.
[cdecl99.git] / tests / crossparse-c-random.sh
index 03ec30f065037c80b9fa1b2f5b92dabefde95405..8fb1b633039d96d2bc39e66fcb9ed2014b5cb5d8 100755 (executable)
@@ -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"