Increase timeout of libio/tst-readline
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 9 Oct 2018 13:31:28 +0000 (14:31 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 9 Oct 2018 14:56:12 +0000 (15:56 +0100)
Increase timeout from the default 20s to 100s. This test makes close to
20 million syscalls with distribution:

12327675 read
 4143204 lseek
  929475 close
  929471 openat
   92817 fstat
    1431 write
...

The default timeout assumes each can finish in 1us on average which
is not true on slow machines.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* libio/tst-readline.c (TIMEOUT): Define.

ChangeLog
libio/tst-readline.c

index cadf861..2b19d0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * libio/tst-readline.c (TIMEOUT): Define.
+
 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        mktime fix for Gnulib + coreutils
index 9322ef6..63f5227 100644 (file)
@@ -232,5 +232,6 @@ do_test (void)
   return 0;
 }
 
+#define TIMEOUT 100
 #define PREPARE prepare
 #include <support/test-driver.c>