diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/subst.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/subst.exp | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/gdb/testsuite/gdb.base/subst.exp b/gdb/testsuite/gdb.base/subst.exp index b7f0ab2f504..b18453dcd3b 100644 --- a/gdb/testsuite/gdb.base/subst.exp +++ b/gdb/testsuite/gdb.base/subst.exp @@ -24,8 +24,7 @@ gdb_reinitialize_dir $srcdir/$subdir # Do a bunch of testing of the set/unset/show substitute-path # commands that do not require the presence of an executable. -gdb_test "set confirm off" \ - "" \ +gdb_test_no_output "set confirm off" \ "deactivate GDB's confirmation interface" gdb_test "show substitute-path" \ @@ -44,8 +43,7 @@ gdb_test "unset substitute-path from" \ "No substitution rule defined for `from'" \ "unset substitute-path from, no rule entered yet" -gdb_test "unset substitute-path" \ - "" \ +gdb_test_no_output "unset substitute-path" \ "unset substitute-path, no rule entered yet" gdb_test "unset substitute-path from" \ @@ -68,24 +66,19 @@ gdb_test "set substitute-path '' to" \ "First argument must be at least one character long" \ "set substitute-path, first argument is empty string" -gdb_test "set substitute-path from to" \ - "" \ +gdb_test_no_output "set substitute-path from to" \ "add from -> to substitution rule" -gdb_test "set substitute-path from1 to1/" \ - "" \ +gdb_test_no_output "set substitute-path from1 to1/" \ "add from1 -> to1 substitution rule" -gdb_test "set substitute-path source destination" \ - "" \ +gdb_test_no_output "set substitute-path source destination" \ "add source -> destination substitution rule" -gdb_test "set substitute-path depuis/ vers" \ - "" \ +gdb_test_no_output "set substitute-path depuis/ vers" \ "add depuis -> vers substitution rule" -gdb_test "set substitute-path empty ''" \ - "" \ +gdb_test_no_output "set substitute-path empty ''" \ "add substitution rule to empty string" gdb_test "show substitute-path" \ @@ -104,8 +97,7 @@ gdb_test "show substitute-path garbage" \ "Source path substitution rule matching `garbage':" \ "show substitute-path garbage, after all paths added" -gdb_test "unset substitute-path from" \ - "" \ +gdb_test_no_output "unset substitute-path from" \ "unset substitute-path from" gdb_test "show substitute-path from" \ @@ -120,24 +112,21 @@ gdb_test "unset substitute-path from" \ "No substitution rule defined for `from'" \ "unset substitute-path from after the rule was removed" -gdb_test "unset substitute-path depuis" \ - "" \ +gdb_test_no_output "unset substitute-path depuis" \ "unset substitute-path depuis (middle of list)" gdb_test "show substitute-path" \ "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'.\r\n\ +`empty' -> `'." \ "show substitute-path after depuis rule removed" -gdb_test "unset substitute-path empty" \ - "" \ +gdb_test_no_output "unset substitute-path empty" \ "unset substitute-path empty (end of list)" gdb_test "show substitute-path" \ "List of all source path substitution rules:\r\n +`from1' -> `to1'.\r\n +`source' -> `destination'." \ "show substitute-path after empty rule removed" -gdb_test "unset substitute-path" \ - "" \ +gdb_test_no_output "unset substitute-path" \ "remove all remaining substitution rules" gdb_test "show substitute-path" \ |