Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: gdb/testsuite/gdb.threads/manythreads.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.threads/manythreads.c ('k') | gdb/testsuite/gdb.threads/multi-create.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.threads/manythreads.exp
diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp
index c863ee19c6e9984a99c2038e4a3a0bb2b01581cd..5d21ba914d08f2785526c97129d19b82f3981be4 100644
--- a/gdb/testsuite/gdb.threads/manythreads.exp
+++ b/gdb/testsuite/gdb.threads/manythreads.exp
@@ -1,5 +1,5 @@
# manythreads.exp -- Expect script to test stopping many threads
-# Copyright (C) 2004, 2006-2012 Free Software Foundation, Inc.
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -19,7 +19,13 @@
standard_testfile
-if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
+set opts { debug }
+if [info exists DEBUG] {
+ # make check RUNTESTFLAGS='gdb.threads/manythreads.exp DEBUG=1'
+ lappend opts "additional_flags=-DDEBUG"
+}
+
+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
return -1
}
@@ -59,9 +65,6 @@ gdb_test_multiple "" "stop threads 1" {
-re "\\\[\[^\]\]* exited\\\]\r\n" {
exp_continue
}
- -re "Thread \[^\n\]* executing\r\n" {
- exp_continue
- }
-re "Program received signal SIGINT.*$gdb_prompt $" {
pass "$message"
}
@@ -113,9 +116,6 @@ remote_expect host 1 {
-re "\\\[\[^\]\]* exited\\\]\r\n" {
exp_continue -continue_timer
}
- -re "Thread \[^\n\]* executing\r\n" {
- exp_continue -continue_timer
- }
-re "Program received signal SIGINT.*$gdb_prompt $" {
if { $failed == 0 } {
fail "check for duplicate SIGINT"
@@ -141,9 +141,6 @@ gdb_test_multiple "" "stop threads 2" {
-re "\\\[\[^\]\]* exited\\\]\r\n" {
exp_continue
}
- -re "Thread \[^\n\]* executing\r\n" {
- exp_continue
- }
-re "Program received signal SIGINT.*$gdb_prompt $" {
pass "$message"
}
« no previous file with comments | « gdb/testsuite/gdb.threads/manythreads.c ('k') | gdb/testsuite/gdb.threads/multi-create.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698