From: Nathan Sidwell <nathan@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Daniel Jacobowitz <dan@codesourcery.com>
Subject: tweak a couple of tests
Date: Mon, 24 Jul 2006 13:46:00 -0000 [thread overview]
Message-ID: <44C4CF41.9030609@codesourcery.com> (raw)
[-- 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
}
next reply other threads:[~2006-07-24 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-24 13:46 Nathan Sidwell [this message]
2006-07-24 13:54 ` 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=44C4CF41.9030609@codesourcery.com \
--to=nathan@codesourcery.com \
--cc=dan@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