aboutsummaryrefslogtreecommitdiffstats
path: root/test/inftest.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/inftest.awk')
-rw-r--r--test/inftest.awk5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/inftest.awk b/test/inftest.awk
index f24bd7e3..a8226178 100644
--- a/test/inftest.awk
+++ b/test/inftest.awk
@@ -1,5 +1,8 @@
BEGIN {
+ k = 0
x = 100
- do { y = x ; x *= 1000; print x,y } while ( y < x )
+ # Added k limit test after finding some systems that didn't terminate
+ # the loop correctly, sigh...
+ do { k++; y = x ; x *= 1000; print x,y } while ( y < x && k < 1700)
print "loop terminated"
}