diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-02-09 11:43:35 +0100 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-03-28 21:15:20 +0100 |
commit | 80047cfc27459d4d31fe275ddd02231d812ddb61 (patch) | |
tree | 7ebbd593912e9142e1c2b3e2e332c00f14da04c3 | |
parent | 65d2b333a830b3f36c8b7ae9d9ed6c77f8be9270 (diff) | |
download | fsf-binutils-gdb-80047cfc27459d4d31fe275ddd02231d812ddb61.zip fsf-binutils-gdb-80047cfc27459d4d31fe275ddd02231d812ddb61.tar.gz fsf-binutils-gdb-80047cfc27459d4d31fe275ddd02231d812ddb61.tar.bz2 |
Fix gdb.multi/multi-arch-exec.exp blocking under high load/slow gdb
When running multi-arch-exec.exp under valgrind, the test succeeds
when the machine is not loaded, but blocks when the machine is highly
loaded (e.g. when running the testsuite with valgrind with -j X
where X is one more than the nr of available cores).
The problem is that the hello program dies too early due to the alarm (30).
So, increase the alarm timer.
Note that this does not make the test take longer (it takes about
3.5 seconds on my system). As I understand, the alarm is just there
to avoid hello staying there forever in case of another problem.
2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.multi/hello.c (main): Increase alarm timer.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.multi/hello.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9f0065b..4a4a87c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * gdb.multi/hello.c (main): Increase alarm timer. + 2019-03-28 Sandra Loosemore <sandra@codesourcery.com> * gdb.threads/watchpoint-fork.exp (test): Use large timeout diff --git a/gdb/testsuite/gdb.multi/hello.c b/gdb/testsuite/gdb.multi/hello.c index c079a18..b742a73 100644 --- a/gdb/testsuite/gdb.multi/hello.c +++ b/gdb/testsuite/gdb.multi/hello.c @@ -48,7 +48,7 @@ main() { int tmpx; - alarm (30); + alarm (240); bar(); tmpx = hello(glob); |