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

Unified Diff: gdb/testsuite/gdb.base/random-signal.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.base/random-signal.c ('k') | gdb/testsuite/gdb.base/randomize.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.base/random-signal.exp
diff --git a/gdb/testsuite/gdb.threads/sigthread.exp b/gdb/testsuite/gdb.base/random-signal.exp
similarity index 64%
copy from gdb/testsuite/gdb.threads/sigthread.exp
copy to gdb/testsuite/gdb.base/random-signal.exp
index 7e9fb0644e017225efa5d16dc655d1ed8c8fa874..bd235137189e08126619b77867ac673308c0b567 100644
--- a/gdb/testsuite/gdb.threads/sigthread.exp
+++ b/gdb/testsuite/gdb.base/random-signal.exp
@@ -1,5 +1,4 @@
-# sigthread.exp -- Expect script to test thread and signal interaction
-# Copyright (C) 2007-2012 Free Software Foundation, Inc.
+# Copyright 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
@@ -12,25 +11,25 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>. */
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+if [target_info exists gdb,nosignals] {
+ verbose "Skipping catch-signal.exp because of nosignals."
+ continue
+}
standard_testfile
-if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
- executable { debug }] != "" } {
+if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
return -1
}
-clean_restart ${binfile}
-
-if ![runto_main] then {
- fail "Can't run to main"
- return 0
+if {![runto_main]} {
+ return -1
}
-gdb_test "handle SIGUSR1 nostop noprint pass"
-gdb_test "handle SIGUSR2 nostop noprint pass"
-
+gdb_test_no_output "set can-use-hw-watchpoints 0"
+gdb_test "watch v" "Watchpoint .*"
gdb_test_multiple "continue" "continue" {
-re "Continuing" {
pass "continue"
@@ -40,7 +39,4 @@ gdb_test_multiple "continue" "continue" {
# For this to work we must be sure to consume the "Continuing."
# message first, or GDB's signal handler may not be in place.
after 500 {send_gdb "\003"}
-
-# Make sure we do not get an internal error from hitting Control-C
-# while many signals are flying back and forth.
gdb_test "" "Program received signal SIGINT.*" "stop with control-c"
« no previous file with comments | « gdb/testsuite/gdb.base/random-signal.c ('k') | gdb/testsuite/gdb.base/randomize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698