From 05ef58b958221ebcf64c02eeb57a1af8c21eed2f Mon Sep 17 00:00:00 2001
From: Dan Hirsch <thequux@thequux.com>
Date: Wed, 23 May 2012 01:07:14 +0200
Subject: [PATCH] Restore test_many to one iteration

---
 src/hammer.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/hammer.c b/src/hammer.c
index 220fba86..47429853 100644
--- a/src/hammer.c
+++ b/src/hammer.c
@@ -1163,12 +1163,10 @@ static void test_xor(void) {
 
 static void test_many(void) {
   const parser_t *many_ = many(choice(ch('a'), ch('b'), NULL));
-  for (int i = 0; i < 10000; i++) {
-    g_check_parse_ok(many_, "adef", 4, "(u0x61)");
-    g_check_parse_ok(many_, "bdef", 4, "(u0x62)");
-    g_check_parse_ok(many_, "aabbabadef", 10, "(u0x61 u0x61 u0x62 u0x62 u0x61 u0x62 u0x61)");
-    g_check_parse_ok(many_, "daabbabadef", 11, "()");
-  }
+  g_check_parse_ok(many_, "adef", 4, "(u0x61)");
+  g_check_parse_ok(many_, "bdef", 4, "(u0x62)");
+  g_check_parse_ok(many_, "aabbabadef", 10, "(u0x61 u0x61 u0x62 u0x62 u0x61 u0x62 u0x61)");
+  g_check_parse_ok(many_, "daabbabadef", 11, "()");
 }
 
 static void test_many1(void) {
-- 
GitLab