This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Testsuite noargs tweak


Some new tests using "set args" were added about a year ago that didn't
check target_info noargs; they show up as failures when using gdbserver. 
Fixed like so, committed to HEAD as obvious.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

Index: ChangeLog
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.629
diff -u -p -r1.629 ChangeLog
--- ChangeLog	25 Sep 2003 16:39:39 -0000	1.629
+++ ChangeLog	29 Sep 2003 15:07:15 -0000
@@ -1,3 +1,9 @@
+2003-09-29  Daniel Jacobowitz  <drow@mvista.com>
+
+	* ChangeLog: Correct an entry command.exp -> commands.exp.
+	* gdb.base/commands.exp (bp_deleted_in_command_test)
+	(temporary_breakpoint_commands): Check noargs.
+
 2003-09-25  David Carlton  <carlton@kealia.com>
 
 	* gdb.cp/namespace.exp: Tweak comments.  Add non-quoted versions
@@ -1389,7 +1395,7 @@
 
 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
 
-	* gdb.base/command.exp: Don't expect a "Program exited normally"
+	* gdb.base/commands.exp: Don't expect a "Program exited normally"
 	string after running the commands execution on breakpoint tests.
 
 2002-09-13  Corinna Vinschen  <vinschen@redhat.com>
Index: gdb.base/commands.exp
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/testsuite/gdb.base/commands.exp,v
retrieving revision 1.12
diff -u -p -r1.12 commands.exp
--- gdb.base/commands.exp	14 Sep 2002 09:31:36 -0000	1.12
+++ gdb.base/commands.exp	29 Sep 2003 15:05:22 -0000
@@ -1,5 +1,5 @@
 #   Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1997, 1998, 1999, 2000,
-#   2001 Free Software Foundation, Inc.
+#   2001, 2002, 2003 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -443,6 +443,11 @@ proc deprecated_command_test {} {
 proc bp_deleted_in_command_test {} {
     global gdb_prompt
     
+    if [target_info exists noargs] { 
+        verbose "Skipping bp_deleted_in_command_test because of noargs."
+        return
+    }
+
     gdb_test "set args 1" "" "set args in bp_deleted_in_command_test"
     delete_breakpoints
 
@@ -504,6 +509,11 @@ proc bp_deleted_in_command_test {} {
 proc temporary_breakpoint_commands {} {
     global gdb_prompt
     
+    if [target_info exists noargs] { 
+        verbose "Skipping temporary_breakpoint_commands because of noargs."
+        return
+    }
+
     gdb_test "set args 1" "" "set args in temporary_breakpoint_commands"
     delete_breakpoints
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]