Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* add bare_board variable
@ 2006-06-09 21:10 Nathan Sidwell
  2006-06-16 16:36 ` Nathan Sidwell
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nathan Sidwell @ 2006-06-09 21:10 UTC (permalink / raw)
  To: gdb-patches

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

This patch adds a bare_board target_info variable to skip a couple of tests that
presume some kind of OS is running.

The start.exp test doesn't work when a gdb stub is being used.

ok?

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


[-- Attachment #2: test-bare.patch --]
[-- Type: text/x-patch, Size: 2281 bytes --]

2006-06-09  Nathan Sidwell  <nathan@codesourcery.com>

	gdb/testsuite/
	* gdb.base/auxv.exp: Skip if bare_board
	* gdb.base/gdb1555.exp: Likewise.
	* gdb.base/start.exp: Skip if use_gdb_stub.

Index: gdb/testsuite/gdb.base/auxv.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/auxv.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 auxv.exp
*** gdb/testsuite/gdb.base/auxv.exp	2 May 2005 20:57:30 -0000	1.4
--- gdb/testsuite/gdb.base/auxv.exp	9 Jun 2006 21:03:25 -0000
***************
*** 23,28 ****
--- 23,33 ----
  # This file is based on corefile.exp which was written by Fred
  # Fish. (fnf@cygnus.com)
  
+ if [target_info exists bare_board] then {
+     verbose "Skipping auxv.exp because of bare_board."
+     return
+ }
+ 
  if $tracelevel then {
  	strace $tracelevel
  }
Index: gdb/testsuite/gdb.base/gdb1555.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1555.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 gdb1555.exp
*** gdb/testsuite/gdb.base/gdb1555.exp	18 Feb 2004 03:35:08 -0000	1.1
--- gdb/testsuite/gdb.base/gdb1555.exp	9 Jun 2006 21:03:26 -0000
***************
*** 21,26 ****
--- 21,31 ----
  # a shared library (PR gdb/1555, was PR shlib/1280, shlib/1237).
  # Tested on ppc-yellowdog-linux (Yellow Dog Linux 3.0 3.2.2-2a)
  
+ if [target_info exists bare_board] then {
+     verbose "Skipping gdb1555.exp because of bare_board."
+     return
+ }
+ 
  if $tracelevel then {
      strace $tracelevel
  }
Index: gdb/testsuite/gdb.base/start.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/start.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 start.exp
*** gdb/testsuite/gdb.base/start.exp	9 Feb 2005 19:58:23 -0000	1.1
--- gdb/testsuite/gdb.base/start.exp	9 Jun 2006 21:03:26 -0000
***************
*** 14,19 ****
--- 14,24 ----
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
  
+ if [target_info use_gdb_stub] {
+     verbose "Skipping start.exp because of use_gdb_stub."
+     return
+ }
+ 
  if $tracelevel then {
      strace $tracelevel
  }

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

end of thread, other threads:[~2006-07-19 16:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 21:10 add bare_board variable Nathan Sidwell
2006-06-16 16:36 ` Nathan Sidwell
2006-07-19 15:53 ` Nathan Sidwell
2006-07-19 16:04 ` Daniel Jacobowitz
2006-07-19 16:18   ` Nathan Sidwell
2006-07-19 16:27     ` Daniel Jacobowitz

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