[RFA] gdb.base/default.exp: make all test names unique

Michael Elizabeth Chastain chastain@cygnus.com
Sun May 20 05:04:00 GMT 2001


This patch changes gdb.base/default.exp to make all test names unique.
I also added a comment about a FAIL that I saw on native Solaris 2.8.

Testing: I tested this on native Red Hat Linux 7 and native Solaris 2.8.

OK to apply?

Michael

===

2001-05-19  Michael Chastain  <chastain@redhat.com>

	* gdb.base/default.exp: Make all test names unique.

Index: gdb/testsuite/gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 default.exp
*** gdb/testsuite/gdb.base/default.exp	2001/03/06 08:21:50	1.2
--- gdb/testsuite/gdb.base/default.exp	2001/05/20 07:09:28
***************
*** 1,5 ****
  #   Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999,
! #   2000
  #   Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  #   Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999,
! #   2000, 2001
  #   Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
*************** setup_xfail "a29k-*-udi"
*** 328,333 ****
--- 328,335 ----
  gdb_test "info stack" "No stack." "info stack"
  #test info set
  # FIXME -- needs to match the entire output
+ # FIXME -- on native solaris 2.8, this test fails due to this line:
+ #  prompt:  Gdb's prompt is "(gdb) ".^M
  gdb_test "info set" "confirm:  Whether to confirm potentially dangerous operations is o\[a-z\]*..*\[\r\n\]+history filename:  The filename in which to record the command history is .*\[\r\n\]+listsize:  Number of source lines gdb will list by default is 10.*" "info set"
  gdb_test "info symbol" "Argument required .address.."
  #test info source
*************** gdb_test "overlay auto"   ""
*** 387,393 ****
  gdb_test "overlay off"    ""
  gdb_test "overlay list"   "No sections are mapped."
  gdb_test "overlay map"    "Overlay debugging not enabled.*" "overlay map #1"
! gdb_test "overlay unmap"  "Overlay debugging not enabled.*" "overlay unmap #2"
  gdb_test "overlay manual" "" "overlay manual #2"
  gdb_test "overlay map"    "Argument required: name of an overlay section." "overlay map #2"
  gdb_test "overlay unmap"  "Argument required: name of an overlay section." "overlay unmap #2"
--- 389,395 ----
  gdb_test "overlay off"    ""
  gdb_test "overlay list"   "No sections are mapped."
  gdb_test "overlay map"    "Overlay debugging not enabled.*" "overlay map #1"
! gdb_test "overlay unmap"  "Overlay debugging not enabled.*" "overlay unmap #1"
  gdb_test "overlay manual" "" "overlay manual #2"
  gdb_test "overlay map"    "Argument required: name of an overlay section." "overlay map #2"
  gdb_test "overlay unmap"  "Argument required: name of an overlay section." "overlay unmap #2"



More information about the Gdb-patches mailing list