Fix test names starting with uppercase using multi-line gdb_test_multiple
authorLuis Machado <lgustavo@codesourcery.com>
Thu, 1 Dec 2016 20:46:28 +0000 (14:46 -0600)
committerLuis Machado <lgustavo@codesourcery.com>
Thu, 1 Dec 2016 20:46:28 +0000 (14:46 -0600)
This fixes offender testcases that have test names starting with uppercase
when using gdb_test_multiple in a multi-line construct.

gdb/testsuite/ChangeLog
2016-12-01  Luis Machado  <lgustavo@codesourcery.com>

* gdb.cp/gdb2495.exp: Replace gdb_test_multiple
with gdb_test_no_output.
Use command as test name.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/gdb2495.exp

index 5f3d8a12e43251edfc2377ce6f7a4802f5e81cfa..c1b04bea5ccc954daa4dded401d3fe1d4e180fd8 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-01  Luis Machado  <lgustavo@codesourcery.com>
+
+       * gdb.cp/gdb2495.exp: Replace gdb_test_multiple
+       with gdb_test_no_output.
+       Use command as test name.
+
 2016-12-01  Luis Machado  <lgustavo@codesourcery.com>
 
        Fix test names starting with uppercase throughout the files.
index dff5977743aebd0a98a85691fb87c03c917482e3..b4304fb7f1e37163941e2b088ea2e6107d5cea26 100644 (file)
@@ -94,11 +94,7 @@ gdb_test "info breakpoints" \
     "gdb2495\.cc.*"
 
 # Turn off this new behaviour.
-gdb_test_multiple "set unwind-on-terminating-exception off" \
-    "Turn unwind-on-terminating-exception off" {
-    -re "$gdb_prompt $" {pass "set unwinn-on-terminating-exception off"}
-    timeout {fail "(timeout) set unwind-on-terminating-exception off"}
-}
+gdb_test_no_output "set unwind-on-terminating-exception off"
 
 # Check that it is turned off.
 gdb_test "show unwind-on-terminating-exception" \
This page took 0.035444 seconds and 4 git commands to generate.