This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Adjust some timeouts for slow CPUs
- From: Chung-Lin Tang <cltang at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: Carlos O'Donell <carlos at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Sat, 24 Jan 2015 14:10:53 +0800
- Subject: [PATCH] Adjust some timeouts for slow CPUs
- Authentication-results: sourceware.org; auth=none
Hi, this was submitted earlier with the nios2 patches, but Joseph
suggested it to be a separate patch.
Some tests take a really long time to run on slow CPUs, often with no
FPU, like typical Nios II soft-cores; I noticed a few tests started to
timeout after they were updated to use test-skeleton.c.
So I'm seeking permission to adjust the timeouts as attached. This
won't unstabilize anything, okay to commit?
Thanks,
Chung-Lin
2015-01-24 Chung-Lin Tang <cltang@codesourcery.com>
* libio/tst-memstream2.c (TIMEOUT): Define as 100.
* math/atest-exp.c (TIMEOUT): Adjust to 200.
* math/atest-exp2.c (TIMEOUT): Adjust to 300.
* math/atest-sincos.c (TIMEOUT): Adjust to 600.
diff --git a/libio/tst-memstream2.c b/libio/tst-memstream2.c
index 9619d77..cbea4b2 100644
--- a/libio/tst-memstream2.c
+++ b/libio/tst-memstream2.c
@@ -100,5 +100,6 @@ do_test (void)
return 0;
}
+#define TIMEOUT 100
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
diff --git a/math/atest-exp.c b/math/atest-exp.c
index e190e5d..be0d401 100644
--- a/math/atest-exp.c
+++ b/math/atest-exp.c
@@ -191,6 +191,6 @@ do_test (void)
return failures == 0 ? 0 : 1;
}
-#define TIMEOUT 10
+#define TIMEOUT 200
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
diff --git a/math/atest-exp2.c b/math/atest-exp2.c
index f11b652..307c741 100644
--- a/math/atest-exp2.c
+++ b/math/atest-exp2.c
@@ -228,6 +228,6 @@ do_test (void)
return failures == 0 ? 0 : 1;
}
-#define TIMEOUT 10
+#define TIMEOUT 300
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
diff --git a/math/atest-sincos.c b/math/atest-sincos.c
index 5f0f032..0933169 100644
--- a/math/atest-sincos.c
+++ b/math/atest-sincos.c
@@ -278,6 +278,6 @@ do_test (void)
return (sin_failures == 0 && cos_failures == 0) ? 0 : 1;
}
-#define TIMEOUT 10
+#define TIMEOUT 600
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"