More "Program" -> "Thread NN received signal" testsuite adjustment
authorPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 20:24:14 +0000 (20:24 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 20:24:14 +0000 (20:24 +0000)
These tests should have been adjusted by f303dbd60d9c (Fix PR
threads/19422 - show which thread caused stop), but clearly I had
missed grepping for potential-fail cases.

gdb/testsuite/ChangeLog
2016-03-09  Pedro Alves  <palves@redhat.com>

* gdb.threads/attach-into-signal.exp: Adjust to "Program received
signal" -> "Thread NN received signal" output change.
* gdb.threads/ia64-sigill.exp: Likewise.
* gdb.threads/linux-dp.exp: Likewise.
* gdb.threads/manythreads.exp: Likewise.
* gdb.threads/pending-step.exp: Likewise.
* gdb.threads/print-threads.exp: Likewise.
* gdb.threads/sigstep-threads.exp: Likewise.
* gdb.threads/staticthreads.exp: Likewise.
* gdb.threads/tls.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/attach-into-signal.exp
gdb/testsuite/gdb.threads/ia64-sigill.exp
gdb/testsuite/gdb.threads/linux-dp.exp
gdb/testsuite/gdb.threads/manythreads.exp
gdb/testsuite/gdb.threads/pending-step.exp
gdb/testsuite/gdb.threads/print-threads.exp
gdb/testsuite/gdb.threads/sigstep-threads.exp
gdb/testsuite/gdb.threads/staticthreads.exp
gdb/testsuite/gdb.threads/tls.exp

index 644a6f1bff433055dddb7a6f17d4283aca786e9f..6ce48bfa023c35b141951042e1400a1c31a5a923 100644 (file)
@@ -1,3 +1,16 @@
+2016-03-09  Pedro Alves  <palves@redhat.com>
+
+       * gdb.threads/attach-into-signal.exp: Adjust to "Program received
+       signal" -> "Thread NN received signal" output change.
+       * gdb.threads/ia64-sigill.exp: Likewise.
+       * gdb.threads/linux-dp.exp: Likewise.
+       * gdb.threads/manythreads.exp: Likewise.
+       * gdb.threads/pending-step.exp: Likewise.
+       * gdb.threads/print-threads.exp: Likewise.
+       * gdb.threads/sigstep-threads.exp: Likewise.
+       * gdb.threads/staticthreads.exp: Likewise.
+       * gdb.threads/tls.exp: Likewise.
+
 2016-03-09  Marcin Koƛcielnicki  <koriakin@0x04.net>
 
        * gdb.trace/ftrace.exp: Set arg0exp for ppc.
index 29197258b3bfc9f61900fb45d73f7ead68879b10..c4e1f92fd5264fa7d786190b1da2ce6432040f32 100644 (file)
@@ -86,7 +86,7 @@ proc corefunc { threadtype executable } {
                # Main test:
                set test "attach (pass $passes), pending signal catch"
                if {[gdb_test_multiple "attach $testpid" $test {
-                   -re "Attaching to program.*`?$escapedbinfile'?, process $testpid.*Program received signal SIGALRM.*$gdb_prompt $" {
+                   -re "Attaching to program.*`?$escapedbinfile'?, process $testpid.* received signal SIGALRM.*$gdb_prompt $" {
                        # nonthreaded:
                        pass $test
                        verbose -log "$test succeeded on the attempt # $attempt of $attempts"
index e5649ae0b3abb1e895999e6799552a9dd1106dc8..0d470855625094b30d1f07c9879d37e83ac28ba4 100644 (file)
@@ -67,7 +67,7 @@ gdb_test_multiple "continue" $test {
        # Breakpoint has been skipped in the other thread.
        pass $test
     }
-    -re "Program received signal .*\r\n$gdb_prompt $" {
+    -re " received signal .*\r\n$gdb_prompt $" {
        fail $test
     }
 }
index 6365f7d09859dc093c38d2551a00665354fb6138..9f717c79ffa1aeba095e26dcf0d7a9b0117929d9 100644 (file)
@@ -94,7 +94,7 @@ for {set i 0} {$i < 5} {incr i} {
        }
        -re "^$gdb_prompt $" {
        }
-       -re "Program received signal.*(Unknown signal|SIGUSR|Real-time event).*$gdb_prompt $" {
+       -re " received signal.*(Unknown signal|SIGUSR|Real-time event).*$gdb_prompt $" {
            # It would be nice if we could catch the message that GDB prints
            # when it first notices that the thread library doesn't support
            # debugging, or if we could explicitly ask GDB somehow.
index 8cc4c5cc9a3550d92eed1bd7bb582243b3d52084..0dd72b798d637fe67cb3a75c1a30a2640f3a9a79 100644 (file)
@@ -75,8 +75,8 @@ proc interrupt_and_wait { message } {
        }
        -re "$gdb_prompt $" {
            # Note that with this regex order, if GDB emits [New
-           # Thread ...] output between "Program received signal" and
-           # the prompt, the "received signal" regex won't match.
+           # Thread ...] output between "Thread NNN received signal"
+           # and the prompt, the "received signal" regex won't match.
            # That's good, as if we see that happening, it's a
            # regression.
            #
@@ -151,7 +151,7 @@ remote_expect host 1 {
   -re "\\\[\[^\]\]* exited\\\]\r\n" {
     exp_continue -continue_timer
   }
-  -re "Program received signal SIGINT.*$gdb_prompt $" {
+  -re " received signal SIGINT.*$gdb_prompt $" {
     if { $failed == 0 } {
       fail "check for duplicate SIGINT"
     }
index ffb045c8c09bf3d12f9670df978da1821f7a517d..d3c7d57de25dd74c6d025f542f9a88749bc5bc63 100644 (file)
@@ -70,7 +70,7 @@ set ok 0
 for {set i 0} {$i < $iterations} {incr i} {
     set ok 0
     gdb_test_multiple "next" "$test" {
-       -re "Program received signal SIGTRAP.*$gdb_prompt $" {
+       -re " received signal SIGTRAP.*$gdb_prompt $" {
            fail "$test (spurious SIGTRAP)"
        }
        -re "$gdb_prompt $" {
index 1de3054afa64fbc726a15fa6242de25cb63a9276..1cbec5f086459c277cbd478ccb636f2dea1b931e 100644 (file)
@@ -72,7 +72,7 @@ proc test_all_threads { name kill } {
                fail "all threads ran once ($name) (total $i threads ran)"
            }
        }
-       -re "Program received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
+       -re " received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
            if { $kill == 1 } {
                kfail "gdb/1265" "Running threads ($name) (zombie thread)"
            } else {
index af4681983aac0c4d6aea00d68e0c0b8be75e98ba..99bd133d1cd1d44da5f48288423234a35b0d30fc 100644 (file)
@@ -45,7 +45,7 @@ for {set i 0} {$i < 100} {incr i} {
     # Presume this step failed - as in the case of a timeout.
     set failed 1
     gdb_test_multiple "step" $test {
-       -re "\r\nProgram received signal SIGUSR1, User defined signal 1.\r\n" {
+       -re " received signal SIGUSR1, User defined signal 1.\r\n" {
            exp_continue -continue_timer
        }
        -re "step-(\[012\]).*\r\n$gdb_prompt $" {
index 8631dfb7b38a845bfb5ed17d4c3ae827c6a068cc..16fcb68d18ee10b35ace41c3cc968bcc3e7eea21 100644 (file)
@@ -47,7 +47,7 @@ gdb_test_multiple "continue" "$test" {
     -re "Breakpoint .*, .*sem_post .*$gdb_prompt " {
        pass "$test"
     }
-    -re "Program received signal .*$gdb_prompt " {
+    -re " received signal .*$gdb_prompt " {
        kfail gdb/1328 "$test"
     }
 }
index 4d0a2355eb68ec97c8c4f2faf68d2c551d8d44f0..29384e5449f101abe228c637bb73fda9bde121ba 100644 (file)
@@ -162,7 +162,7 @@ gdb_test "b [gdb_get_line_number "before exit"]" \
 
 send_gdb "continue\n"
 gdb_expect {
-    -re ".*Program received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {
+    -re ".* received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {
         # This is the first symptom if the gcc and binutils versions
         # in use support TLS, but the system glibc does not.
         unsupported "continue to first thread: system does not support TLS"