aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-08-06 12:33:19 +0100
committerPedro Alves <palves@redhat.com>2015-08-06 12:33:19 +0100
commit4807d3f32937bc4d932638fd8f8b3084be82b74a (patch)
treee1eba16f093b39823a3645247afe6012c95e3f99 /gdb
parentb6b9ffccac04b8729d5206b5a9fefa09ea2510f3 (diff)
downloadgdb-4807d3f32937bc4d932638fd8f8b3084be82b74a.zip
gdb-4807d3f32937bc4d932638fd8f8b3084be82b74a.tar.gz
gdb-4807d3f32937bc4d932638fd8f8b3084be82b74a.tar.bz2
test slowdown
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c4
-rw-r--r--gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp4
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c
index a6ff0fd..14b4240 100644
--- a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c
+++ b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.c
@@ -33,7 +33,7 @@ pthread_t threads[NTHREADS];
pthread_barrier_t barrier;
-#define NFORKS 10
+#define NFORKS 1000
/* Used to create a conditional breakpoint that always fails. */
volatile int zero;
@@ -108,7 +108,7 @@ main (void)
pthread_t bp_thread;
/* Don't run forever. */
- alarm (180);
+ // alarm (180);
pthread_barrier_init (&barrier, NULL, NTHREADS + 1);
diff --git a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
index 448b734..b50e6ec 100644
--- a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
+++ b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
@@ -39,6 +39,7 @@ proc do_test { cond_bp_target detach_on_fork } {
set saved_gdbflags $GDBFLAGS
set GDBFLAGS [concat $GDBFLAGS " -ex \"set non-stop on\""]
+ set GDBFLAGS [concat $GDBFLAGS " -ex \"set sysroot /\""]
clean_restart $binfile
set GDBFLAGS $saved_gdbflags
@@ -71,6 +72,7 @@ proc do_test { cond_bp_target detach_on_fork } {
}
-re "Inferior $decimal \(\[^\r\n\]+\) exited normally" {
incr fork_count
+ exp_continue
if {$fork_count <= 100} {
exp_continue
} else {
@@ -105,7 +107,7 @@ proc foreach_with_prefix {var list body} {
}
foreach_with_prefix cond_bp_target {1 0} {
- foreach_with_prefix detach_on_fork {"on" "off"} {
+ foreach_with_prefix detach_on_fork {"off" "off"} {
do_test $cond_bp_target $detach_on_fork
# Disable "off" for now. The test does pass with