From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] Re: gdb.ada tests broken
Date: Sat, 19 Feb 2005 12:36:00 -0000 [thread overview]
Message-ID: <20050218215522.GA1200@adacore.com> (raw)
In-Reply-To: <20050218210459.GA25079@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
> It looks like your changes to use separate subdirectories for each test
> has broken separate-objdir testing. My test runs from this morning
> have:
Oh no, I'm sorry. I thought I had tested my changes with out-of-source
builds. Thanks for letting me know.
> Does the test script need to create the output directory?
Yes, it looks like this would be the best way of fixing the problem.
What do you think of the attached patch?
2004-02-18 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/fixed_points.exp: Create compilation object directory
before running the test.
* gdb.ada/null_record.exp: Likewise.
* gdb.ada/packed_array.exp: Likewise.
* gdb.ada/start.exp: Likewise.
Tested on x86-linux using both approaches: one out-of-source build,
and one in-tree build.
Thanks,
--
Joel
[-- Attachment #2: gdb.ada.diff --]
[-- Type: text/plain, Size: 2379 bytes --]
Index: fixed_points.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/fixed_points.exp,v
retrieving revision 1.2
diff -u -p -r1.2 fixed_points.exp
--- fixed_points.exp 3 Feb 2005 03:58:52 -0000 1.2
+++ fixed_points.exp 18 Feb 2005 21:52:11 -0000
@@ -26,6 +26,7 @@ set testfile "${testdir}/fixed_points"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
+file mkdir ${objdir}/${subdir}/${testdir}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
Index: null_record.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/null_record.exp,v
retrieving revision 1.5
diff -u -p -r1.5 null_record.exp
--- null_record.exp 3 Feb 2005 03:58:53 -0000 1.5
+++ null_record.exp 18 Feb 2005 21:52:11 -0000
@@ -26,6 +26,7 @@ set testfile "${testdir}/null_record"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
+file mkdir ${objdir}/${subdir}/${testdir}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
Index: packed_array.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/packed_array.exp,v
retrieving revision 1.1
diff -u -p -r1.1 packed_array.exp
--- packed_array.exp 15 Feb 2005 15:35:26 -0000 1.1
+++ packed_array.exp 18 Feb 2005 21:52:11 -0000
@@ -26,6 +26,7 @@ set testfile "${testdir}/pa"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
+file mkdir ${objdir}/${subdir}/${testdir}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
Index: start.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/start.exp,v
retrieving revision 1.1
diff -u -p -r1.1 start.exp
--- start.exp 9 Feb 2005 19:38:01 -0000 1.1
+++ start.exp 18 Feb 2005 21:52:11 -0000
@@ -26,6 +26,7 @@ set testfile "${testdir}/dummy"
set srcfile ${srcdir}/${subdir}/${testfile}.adb
set binfile ${objdir}/${subdir}/${testfile}
+file mkdir ${objdir}/${subdir}/${testdir}
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
return -1
}
next prev parent reply other threads:[~2005-02-18 21:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-19 11:10 Daniel Jacobowitz
2005-02-19 12:36 ` Joel Brobecker [this message]
2005-02-25 15:58 ` [RFA] " Daniel Jacobowitz
2005-02-25 16:02 ` Joel Brobecker
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=20050218215522.GA1200@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.com \
/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