]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Cleanup signal-while-stepping-over-bp-other-thread.exp
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 19:02:30 +0000 (19:02 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Apr 2015 18:49:00 +0000 (19:49 +0100)
gdb/testsuite/ChangeLog:
2015-04-10  Pedro Alves  <palves@redhat.com>

* gdb.threads/signal-while-stepping-over-bp-other-thread.exp: Use
gdb_test_sequence and gdb_assert.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp

index e482bbbc14e7a10e5c7f6ccab0257430c6282a81..775e6f98d12509d65245a6ad03d2c983b2f019ee 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-10  Pedro Alves  <palves@redhat.com>
+
+       * gdb.threads/signal-while-stepping-over-bp-other-thread.exp: Use
+       gdb_test_sequence and gdb_assert.
+
 2015-04-10  Pedro Alves  <palves@redhat.com>
 
        * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Use
index bb00c50c70fc46b4acf2801e220789307c701b4a..3201b1f36e048e32bb6f307104974693fbb3fa70 100644 (file)
@@ -95,19 +95,19 @@ gdb_test "set scheduler-locking off"
 # Make sure we're exercising the paths we want to.
 gdb_test "set debug infrun 1"
 
-gdb_test \
-    "step" \
-    ".*need to step-over.*resume \\(step=1.*signal arrived while stepping over breakpoint.*switching back to stepped thread.*stepped to a different line.*callme.*" \
-    "step"
+set test "step"
+gdb_test_sequence $test $test {
+    "need to step-over"
+    "resume \\(step=1"
+    "signal arrived while stepping over breakpoint"
+    "switching back to stepped thread"
+    "stepped to a different line"
+    "callme"
+}
 
 set cnt_after [get_value "args\[$my_number\]" "get count after step"]
 
 # Test that GDB doesn't inadvertently resume the stepped thread when a
 # signal arrives while stepping over a breakpoint in another thread.
 
-set test "stepped thread under control"
-if { $cnt_before + 1 == $cnt_after } {
-    pass $test
-} else {
-    fail $test
-}
+gdb_assert { $cnt_before + 1 == $cnt_after } "stepped thread under control"