From: Markus Deuling <deuling@de.ibm.com>
To: GDB Patches <gdb-patches@sourceware.org>
Subject: [RFA]: gdb/testsuite/gdb.arch/altivec-regs.exp Broken testcase
Date: Tue, 16 Jan 2007 06:48:00 -0000 [thread overview]
Message-ID: <45AC7532.6010108@de.ibm.com> (raw)
Hi,
I'm referring to http://sourceware.org/ml/gdb-patches/2007-01/msg00353.html.
It seems that the output from "show endian" has changed since the last time someone took a
look into it :-) So I added a "re" to the test.
Do we need this branch or can I delete it ?
>> -re "(The target endianness is set automatically .currently )(big|little)( endian.*)$gdb_prompt $" {
>> pass "endianness"
>> set endianness $expect_out(2,string)
>> }
This is the result of gdb.arch/altivec-regs.exp with my patch:
# of expected passes 209
# of unexpected failures 1
Is it ok to apply ?
ChangeLog:
*gdb.arch/altivec-regs.exp: Initialise variable
endianness in every case.
==========================================
diff -urN dev/gdb/testsuite/gdb.arch/altivec-regs.exp src/gdb/testsuite/gdb.arch/altivec-regs.exp
--- dev/gdb/testsuite/gdb.arch/altivec-regs.exp 2007-01-10 15:48:12.000000000 +0100
+++ src/gdb/testsuite/gdb.arch/altivec-regs.exp 2007-01-16 07:40:05.000000000 +0100
@@ -88,12 +88,17 @@
gdb_test "next" "" ""
+set endianness ""
send_gdb "show endian\n"
gdb_expect {
-re "(The target endianness is set automatically .currently )(big|little)( endian.*)$gdb_prompt $" {
pass "endianness"
set endianness $expect_out(2,string)
}
+ -re "The target is assumed to be big endian.*" {
+ pass "endianess"
+ set endianness "big"
+ }
-re ".*$gdb_prompt $" {
fail "couldn't get endianness"
}
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
next reply other threads:[~2007-01-16 6:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 6:48 Markus Deuling [this message]
2007-01-16 21:28 ` Mark Kettenis
2007-01-17 4:50 ` Markus Deuling
2007-01-17 5:59 ` Daniel Jacobowitz
2007-01-17 6:37 ` Markus Deuling
2007-01-17 8:31 ` Markus Deuling
2007-01-17 21:48 ` Mark Kettenis
2007-01-18 9:15 ` Markus Deuling
2007-01-20 18:32 ` 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=45AC7532.6010108@de.ibm.com \
--to=deuling@de.ibm.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