Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* tweak a couple of tests
@ 2006-07-24 13:46 Nathan Sidwell
  2006-07-24 13:54 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Sidwell @ 2006-07-24 13:46 UTC (permalink / raw)
  To: gdb-patches; +Cc: Daniel Jacobowitz

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

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


[-- Attachment #2: all.diff --]
[-- Type: text/plain, Size: 1800 bytes --]

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
  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tweak a couple of tests
  2006-07-24 13:46 tweak a couple of tests Nathan Sidwell
@ 2006-07-24 13:54 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-07-24 13:54 UTC (permalink / raw)
  To: Nathan Sidwell; +Cc: gdb-patches

On Mon, Jul 24, 2006 at 02:46:41PM +0100, Nathan Sidwell wrote:
> 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?

OK.

> 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.


-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-24 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-24 13:46 tweak a couple of tests Nathan Sidwell
2006-07-24 13:54 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox