[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
memmem test faiure on IRIX
From: |
Bruno Haible |
Subject: |
memmem test faiure on IRIX |
Date: |
Sat, 12 Jan 2008 01:14:10 +0100 |
User-agent: |
KMail/1.5.4 |
On IRIX 6.5, I got this:
$ make check
Making check in gllib
make check-am
Making check in glm4
Making check in gltests
make check-recursive
make check-TESTS
sh[9]: 34324 Alarm call
FAIL: test-memmem
PASS: test-stdbool
PASS: test-stdint
PASS: test-string
PASS: test-strstr
PASS: test-wchar
===================
1 of 6 tests failed
===================
The reason is that test-memmem on this machine takes about 13 seconds
without time limitation, whereas test-strstr needs about 3 seconds. So
it's needed to increase these allowed times.
Also, even on a fast machine, the CPU may be shared by many processes,
so that sometimes you only get 5% or 10% of the CPU.
I'm therefore applying this:
2008-01-11 Bruno Haible <address@hidden>
* tests/test-memmem.c (main): Increase maximum allowed time.
* tests/test-strstr.c (main): Likewise.
*** tests/test-memmem.c.orig 2008-01-12 01:13:27.000000000 +0100
--- tests/test-memmem.c 2008-01-12 01:08:37.000000000 +0100
***************
*** 42,48 ****
caused by SIGALRM. All known platforms that lack alarm also lack
memmem, and the replacement memmem is known to not take too
long. */
! alarm (10);
#endif
{
--- 42,48 ----
caused by SIGALRM. All known platforms that lack alarm also lack
memmem, and the replacement memmem is known to not take too
long. */
! alarm (100);
#endif
{
*** tests/test-strstr.c.orig 2008-01-12 01:13:27.000000000 +0100
--- tests/test-strstr.c 2008-01-12 01:08:37.000000000 +0100
***************
*** 42,48 ****
caused by SIGALRM. All known platforms that lack alarm also have
a quadratic strstr, and the replacement strstr is known to not
take too long. */
! alarm (10);
#endif
{
--- 42,48 ----
caused by SIGALRM. All known platforms that lack alarm also have
a quadratic strstr, and the replacement strstr is known to not
take too long. */
! alarm (50);
#endif
{
- memmem test faiure on IRIX,
Bruno Haible <=