Fix spurious testsuite failure "up in corefile.exp (reinit)"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix spurious testsuite failure "up in corefile.exp (reinit)"

Andreas Schwab
This fixes a spurious testsuite failure on ia64.  The full backtrace is
this:

#0  0xa000000000010620 in __kernel_syscall_via_break ()
#1  0x20000000001a3d40 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#2  0x20000000001a6450 in *__GI_abort () at abort.c:88
#3  0x4000000000001020 in func2 () at /cvs/gdb/gdb/testsuite/gdb.base/coremaker.c:127
#4  0x4000000000001060 in func1 () at /cvs/gdb/gdb/testsuite/gdb.base/coremaker.c:133
#5  0x40000000000010e0 in main () at /cvs/gdb/gdb/testsuite/gdb.base/coremaker.c:139

Thus "up" gets you to __GI_raise.  The first "up" test already allows a
non-empty arg list.

Andreas.

2007-01-26  Andreas Schwab  <[hidden email]>

        * gdb.base/corefile.exp: Allow non-empty argument list in reinit
        test.

--- gdb/testsuite/gdb.base/corefile.exp.~1.11.~ 2007-01-10 11:18:57.000000000 +0100
+++ gdb/testsuite/gdb.base/corefile.exp 2007-01-26 15:24:24.000000000 +0100
@@ -239,6 +239,6 @@ gdb_test_multiple "x/8bd buf2" "$test" {
 # test reinit_frame_cache
 
 gdb_load ${binfile}
-gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(\\).*" "up in corefile.exp (reinit)"
+gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(.*\\).*" "up in corefile.exp (reinit)"
 
 gdb_test "core" "No core file now."

--
Andreas Schwab, SuSE Labs, [hidden email]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Reply | Threaded
Open this post in threaded view
|

Re: Fix spurious testsuite failure "up in corefile.exp (reinit)"

Daniel Jacobowitz-2
On Fri, Jan 26, 2007 at 03:31:23PM +0100, Andreas Schwab wrote:
> 2007-01-26  Andreas Schwab  <[hidden email]>
>
> * gdb.base/corefile.exp: Allow non-empty argument list in reinit
> test.

OK, thanks!

--
Daniel Jacobowitz
CodeSourcery