d8307d
commit ed643089cd3251038863d32e67ec47b94cd557f3
d8307d
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
d8307d
Date:   Tue Oct 9 14:31:28 2018 +0100
d8307d
d8307d
    Increase timeout of libio/tst-readline
d8307d
    
d8307d
    Increase timeout from the default 20s to 100s. This test makes close to
d8307d
    20 million syscalls with distribution:
d8307d
    
d8307d
    12327675 read
d8307d
     4143204 lseek
d8307d
      929475 close
d8307d
      929471 openat
d8307d
       92817 fstat
d8307d
        1431 write
d8307d
    ...
d8307d
    
d8307d
    The default timeout assumes each can finish in 1us on average which
d8307d
    is not true on slow machines.
d8307d
    
d8307d
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
d8307d
    
d8307d
            * libio/tst-readline.c (TIMEOUT): Define.
d8307d
d8307d
diff --git a/libio/tst-readline.c b/libio/tst-readline.c
d8307d
index 9322ef68da5e38a9..63f5227760d88c63 100644
d8307d
--- a/libio/tst-readline.c
d8307d
+++ b/libio/tst-readline.c
d8307d
@@ -232,5 +232,6 @@ do_test (void)
d8307d
   return 0;
d8307d
 }
d8307d
 
d8307d
+#define TIMEOUT 100
d8307d
 #define PREPARE prepare
d8307d
 #include <support/test-driver.c>