Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH,tests] Run to main before doing any tests in structs3.exp
@ 2012-11-06 17:09 Luis Machado
  2012-11-06 17:30 ` Joel Brobecker
  0 siblings, 1 reply; 9+ messages in thread
From: Luis Machado @ 2012-11-06 17:09 UTC (permalink / raw)
  To: gdb-patches

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

Hi,

On remote targets, we don't always start at the entry point. Thus, it is 
safer to get to main and do the tests from that point onwards.

This patch does exactly that, and fixes failures when testing this under 
some remote targets.

OK?


[-- Attachment #2: 0004-structs-fails.diff --]
[-- Type: text/x-patch, Size: 627 bytes --]

2012-11-06  Luis Machado  <lgustavo@codesourcery.com>

	* gdb.base/structs3.exp: Run to main before doing any tests.

Index: gdb-trunk/gdb/testsuite/gdb.base/structs3.exp
===================================================================
--- gdb-trunk.orig/gdb/testsuite/gdb.base/structs3.exp	2012-11-02 17:29:00.801049370 -0200
+++ gdb-trunk/gdb/testsuite/gdb.base/structs3.exp	2012-11-02 17:29:57.401050043 -0200
@@ -23,6 +23,11 @@ if { [prepare_for_testing structs3.exp "
     return -1
 }
 
+if ![runto_main] {
+    untested "could not run to main"
+    return -1
+}
+
 set vhn "\\$\[0-9\]+"
 
 # Check the real contents.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-14 19:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-06 17:09 [PATCH,tests] Run to main before doing any tests in structs3.exp Luis Machado
2012-11-06 17:30 ` Joel Brobecker
2012-11-06 18:51   ` Luis Machado
2012-11-06 19:12     ` Pedro Alves
2012-11-06 20:20       ` Luis Machado
2012-11-07  0:26     ` Joel Brobecker
2012-11-07 11:24       ` Luis Machado
2012-11-07 15:09         ` Joel Brobecker
2012-11-14 19:22           ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox