about summary refs log tree commit diff
path: root/libio/tst-readline.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-10-09 14:31:28 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-10-09 15:56:12 +0100
commited643089cd3251038863d32e67ec47b94cd557f3 (patch)
tree7b88248c92a33a601a437f839b1ec46cb54108ab /libio/tst-readline.c
parent5a580643111ef6081be7b4c7bd1997a5447c903f (diff)
downloadglibc-ed643089cd3251038863d32e67ec47b94cd557f3.tar.gz
glibc-ed643089cd3251038863d32e67ec47b94cd557f3.tar.xz
glibc-ed643089cd3251038863d32e67ec47b94cd557f3.zip
Increase timeout of libio/tst-readline
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.
Diffstat (limited to 'libio/tst-readline.c')
-rw-r--r--libio/tst-readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/tst-readline.c b/libio/tst-readline.c
index 9322ef68da..63f5227760 100644
--- a/libio/tst-readline.c
+++ b/libio/tst-readline.c
@@ -232,5 +232,6 @@ do_test (void)
   return 0;
 }
 
+#define TIMEOUT 100
 #define PREPARE prepare
 #include <support/test-driver.c>