Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: [ob] don't skip most of the testsuite... [was: Re: Make remote-sim target always have a thread]
Date: Wed, 09 Jul 2008 10:53:00 -0000	[thread overview]
Message-ID: <200807091152.43394.pedro@codesourcery.com> (raw)
In-Reply-To: <20080707191518.GE11544@caradoc.them.org>

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

A Monday 07 July 2008 20:15:18, Daniel Jacobowitz wrote:
> On Thu, Jul 03, 2008 at 07:04:20PM +0100, Pedro Alves wrote:
> > Default results look much better than I was expecting without
> > tweaking the boardfile.

Damn, I keep losing my bonus points.

I looked back as I was going to commit the patches, and noticed
that every test that ran after fullname.exp was being skipped, like
so...

 Running ../../../src/gdb/testsuite/gdb.base/fullname.exp ...
 gdb compile failed, arm-elf-gcc: gdb_tg.o: No such file or directory
 Running ../../../src/gdb/testsuite/gdb.base/funcargs.exp ...
 ERROR: ../../../src/gdb/testsuite/gdb.base/funcargs.exp does not exist.
 ERROR: ...
 ...

No wonder I'd got such a clean testsuite run.

The compile failure seems to happen because the gluefile is passed
a relative path to the testsuite/ dir, but this test explicitly
changed dirs:

 Executing on host: arm-elf-gcc tmp-fullname.c       -g  -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort gdb_tg.o -lm   -o fullname    (timeout = 300)
 arm-elf-gcc: gdb_tg.o: No such file or directory
 compiler exited with status 1
 output is:
 arm-elf-gcc: gdb_tg.o: No such file or directory

Fixing this bit will be for a rainy day, but, skipping most of
the testsuite has an obvious fix.  See attached, checked in.

I get to keep my bonus, since no one noticed how it must have
been too good to be true to have no other failures :-)

-- 
Pedro Alves

[-- Attachment #2: fullname.diff --]
[-- Type: text/x-diff, Size: 700 bytes --]

2008-07-09  Pedro Alves  <pedro@codesourcery.com>

	* gdb.base/fullname.exp: Restore pwd if compiling failed.

---
 gdb/testsuite/gdb.base/fullname.exp |    1 +
 1 file changed, 1 insertion(+)

Index: src/gdb/testsuite/gdb.base/fullname.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.base/fullname.exp	2008-07-09 00:05:42.000000000 +0100
+++ src/gdb/testsuite/gdb.base/fullname.exp	2008-07-09 00:10:42.000000000 +0100
@@ -104,6 +104,7 @@ if { [gdb_breakpoint ${objdir}/${subdir}
 set save_pwd [pwd]
 cd ${subdir}
 if  { [gdb_compile "tmp-${srcfile}" "${testfile}" executable {debug}] != "" } {
+    cd $save_pwd
     return -1
 }
 cd $save_pwd

  reply	other threads:[~2008-07-09 10:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 15:23 Make monitor targets always have a thread Pedro Alves
2008-07-03 18:04 ` Make remote-sim target " Pedro Alves
2008-07-04 15:00   ` fix load command bug [was : Re: Make remote-sim target always have a thread] Pedro Alves
2008-07-07 19:20     ` Daniel Jacobowitz
2008-07-09 11:18       ` Pedro Alves
2008-07-07 19:15   ` Make remote-sim target always have a thread Daniel Jacobowitz
2008-07-09 10:53     ` Pedro Alves [this message]
2008-07-09 12:36       ` [ob] don't skip most of the testsuite... [was: Re: Make remote-sim target always have a thread] Daniel Jacobowitz
2008-07-09 11:11     ` Make remote-sim target always have a thread Pedro Alves
2008-07-09 12:39       ` Daniel Jacobowitz
2008-07-07 19:12 ` Make monitor targets " Daniel Jacobowitz
2008-07-07 19:16   ` Stan Shebs
2008-07-07 19:22     ` Daniel Jacobowitz
2008-07-07 19:51       ` Stan Shebs

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=200807091152.43394.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=drow@false.org \
    --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