This is the mail archive of the gdb-patches@sourceware.org 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]

tweak a couple of tests


Dan,
here's an update to a couple of my testsuite patches that weren't quite right. As advised I check istarget for the auxv test. For the cursal test I'm using gdb_file_cmd as you suggested. ok?


tested on m68k-elf.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2006-07-24  Nathan Sidwell  <nathan@codesourcery.com>

	* gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
	* gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.

Index: gdb.base/auxv.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/auxv.exp,v
retrieving revision 1.5
diff -c -3 -p -r1.5 auxv.exp
*** gdb.base/auxv.exp	22 Jun 2006 19:32:41 -0000	1.5
--- gdb.base/auxv.exp	24 Jul 2006 13:34:45 -0000
***************
*** 23,28 ****
--- 23,33 ----
  # This file is based on corefile.exp which was written by Fred
  # Fish. (fnf@cygnus.com)
  
+ if { ! [istarget "*-*-linux*"] && ! [istarget "*-*-solaris*"] } {
+     verbose "Skipping auxv.exp because of lack of support."
+     return
+ }
+ 
  if $tracelevel then {
  	strace $tracelevel
  }
Index: gdb.base/cursal.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/cursal.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 cursal.exp
*** gdb.base/cursal.exp	5 Nov 2004 08:52:28 -0000	1.1
--- gdb.base/cursal.exp	24 Jul 2006 13:34:45 -0000
*************** if {[gdb_compile "${srcdir}/${subdir}/${
*** 34,41 ****
  gdb_exit
  gdb_start
  gdb_reinitialize_dir $srcdir/$subdir
! gdb_load ${binfile}
! 
  gdb_test "set listsize 1" \
      ".*"
  
--- 34,40 ----
  gdb_exit
  gdb_start
  gdb_reinitialize_dir $srcdir/$subdir
! gdb_file_cmd ${binfile}
  gdb_test "set listsize 1" \
      ".*"
  
*************** gdb_test "set listsize 1" \
*** 43,49 ****
  gdb_test "list" \
      "v0 = 0;" \
      "list before run"
! 
  if {! [runto_main]} {
      return -1
  }
--- 42,48 ----
  gdb_test "list" \
      "v0 = 0;" \
      "list before run"
! gdb_load
  if {! [runto_main]} {
      return -1
  }

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