]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
test-memcpy.c: Double TIMEOUT to (8 * 60)
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Nov 2021 14:41:16 +0000 (06:41 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Nov 2021 18:09:33 +0000 (10:09 -0800)
commit d585ba47fcda99fdf228e3e45a01b11a15efbc5a
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Mon Nov 1 00:49:48 2021 -0500

    string: Make tests birdirectional test-memcpy.c

    This commit updates the memcpy tests to test both dst > src and dst <
    src. This is because there is logic in the code based on the

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
significantly increased the number of tests.  On Intel Core i7-1165G7,
test-memcpy takes 120 seconds to run when machine is idle.  Double
TIMEOUT to (8 * 60) for test-memcpy to avoid timeout when machine is
under heavy load.

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
string/test-memcpy.c
string/test-string.h

index 3b0f3127b780f1f5007f2fcad0e1f6452f66bcb1..101d51c4870ccdc59b037848811b98e9c172e867 100644 (file)
@@ -22,6 +22,7 @@
 # define MIN_PAGE_SIZE 131072
 # define TEST_MAIN
 # define TEST_NAME "memcpy"
+# define TIMEOUT (8 * 60)
 # include "test-string.h"
 
 char *simple_memcpy (char *, const char *, size_t);
index 8ee00a04b1e596a9f132942cb752496d27c6b5b0..9a6b76daa49f45a2a441a8ecf0bfab788593a7d8 100644 (file)
@@ -68,7 +68,9 @@ extern impl_t __start_impls[], __stop_impls[];
 
 
 # define TEST_FUNCTION test_main
-# define TIMEOUT (4 * 60)
+# ifndef TIMEOUT
+#  define TIMEOUT (4 * 60)
+# endif
 # define OPT_ITERATIONS 10000
 # define OPT_RANDOM 10001
 # define OPT_SEED 10002