[patch/tests] Use ``set remote ...'' instead of ``set endian ...''

Andrew Cagney ac131313@cygnus.com
Tue Jun 6 21:13:00 GMT 2000


FYI,

I've tweeked the testsuite's commands.exp file so that it uses ``set
remote memory-read-packet-size'' instead of ``set endian big'' when
testing the deprecated command.

I re-implemented ``set endian'' and ``set architecture'' using
add_enum_cmd() and it broke this test :-)

	Andrew
Wed Jun  7 13:02:40 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* gdb.base/commands.exp: Use ``set remote
 	memory-read-packet-size'' instead of ``set endian big'' to test
 	long commands.

Index: gdb/testsuite/gdb.base/commands.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/commands.exp,v
retrieving revision 1.4
diff -p -r1.4 commands.exp
*** commands.exp	2000/03/27 05:29:24	1.4
--- commands.exp	2000/06/07 04:06:33
*************** proc deprecated_command_test {} {
*** 391,401 ****
      gdb_test "p 5" "Warning: command 'print' \\(p\\) is deprecated.*Use 'new_print'.*" "both alias and command are deprecated"
      gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away"
  
!     gdb_test "maintenance deprecate set endian big \"seb\" " "" "deprecate long comamnd"
!     gdb_test "set endian big" "Warning: command 'set endian big' is deprecated.*Use 'seb'.*" "long command deprecated"
  
!     gdb_test "maintenance deprecate set endian big" "" "deprecate long comamnd"
!     gdb_test "set endian big" "Warning: command 'set endian big' is deprecated.*No alternative known.*" "long command deprecated with no alternative."
  
      gdb_test "maintenance deprecate" "\"maintenance deprecate\".*" "deprecate with no arguments"
  }
--- 391,401 ----
      gdb_test "p 5" "Warning: command 'print' \\(p\\) is deprecated.*Use 'new_print'.*" "both alias and command are deprecated"
      gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away"
  
!     gdb_test "maintenance deprecate set remote memory-read-packet-size \"srm\" " "" "deprecate long comamnd"
!     gdb_test "set remote memory-read-packet-size" "Warning: command 'set remote memory-read-packet-size' is deprecated.*Use 'srm'.*" "long command deprecated"
  
!     gdb_test "maintenance deprecate set remote memory-read-packet-size" "" "deprecate long comamnd"
!     gdb_test "set remote memory-read-packet-size" "Warning: command 'set remote memory-read-packet-size' is deprecated.*No alternative known.*" "long command deprecated with no alternative."
  
      gdb_test "maintenance deprecate" "\"maintenance deprecate\".*" "deprecate with no arguments"
  }


More information about the Gdb-patches mailing list