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