]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Increase timeout of libio/tst-readline
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 9 Oct 2018 13:31:28 +0000 (14:31 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 19 Nov 2018 13:21:24 +0000 (14:21 +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.

(cherry picked from commit ed643089cd3251038863d32e67ec47b94cd557f3)

ChangeLog
libio/tst-readline.c

index f2e0f1ffd71304ae3bbb71bf216ec68d225e14b3..99462fa3d456d368d39c0163f43e63ed7df52d13 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-22  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
index 9322ef68da5e38a9cf819d6f2eab953f1fd0b7ba..63f5227760d88c632f77e4cc3b6dfb9b1aacfb42 100644 (file)
@@ -232,5 +232,6 @@ do_test (void)
   return 0;
 }
 
+#define TIMEOUT 100
 #define PREPARE prepare
 #include <support/test-driver.c>