From: Nathan Sidwell <nathan@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: add bare_board variable
Date: Fri, 09 Jun 2006 21:10:00 -0000 [thread overview]
Message-ID: <4489E39C.80900@codesourcery.com> (raw)
[-- 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
}
next reply other threads:[~2006-06-09 21:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 21:10 Nathan Sidwell [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4489E39C.80900@codesourcery.com \
--to=nathan@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox