* gdb.base/help.exp: Don't test "help show".
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 12 Jan 1995 06:17:40 +0000 (06:17 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 12 Jan 1995 06:17:40 +0000 (06:17 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/commands.exp

index 0b4152b7d8e91c816d6b3c7c6e781a4096f5018a..2e626474a3a4032e4a68c55c5a00719850cf2258 100644 (file)
@@ -1,5 +1,14 @@
+Thu Jan 12 01:14:53 1995  Jim Kingdon  <kingdon@lioth.cygnus.com>
+
+       * gdb.base/help.exp: Don't test "help show".
+
 Wed Jan 11 14:37:04 1995  Jim Kingdon  <kingdon@lioth.cygnus.com>
 
+       * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
+       "set print address" is on.
+       * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
+       pass prompt to gdb_test; gdb_test already looks for the prompt.
+
        * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
 
        * gdb.base/a1-selftest.exp: Don't test "maint dump-me".  That test
index 6e78f6ea7d4df3593783424a3d75424af33b3eb4..bef2468a331bfa5f9cefb6594fca144693106543 100644 (file)
@@ -34,6 +34,8 @@ if ![file exists $objdir/$subdir/$binfile] then {
     return 0
 }
 
+gdb_exit
+gdb_start
 delete_breakpoints
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $objdir/$subdir/$binfile
@@ -107,7 +109,7 @@ proc if_while_breakpoint_command_test {} {
         default { fail "(timeout or eof) commands" }
     }
     # This test should alternate between 0xdeadbeef and 0xfeedface two times.
-    gdb_test "while value > 0\\nset value -= 1\\nif \(value % 2\) == 1\\np/x 0xdeadbeef\\nelse\\np/x 0xfeedface\\nend\\nend\\nend\\n" ".*$prompt.*" "commands"
+    gdb_test "while value > 0\\nset value -= 1\\nif \(value % 2\) == 1\\np/x 0xdeadbeef\\nelse\\np/x 0xfeedface\\nend\\nend\\nend\\n" "" "commands"
     gdb_test "continue" "\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" "if_while_breakpoint_command_test #1"
    gdb_test "info break" "while.*set.*if.*p/x.*else.*p/x.*end.*" "info break"
 }