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