Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [RFA/Testsuite] help.exp
@ 2002-04-23 21:04 Michael Elizabeth Chastain
  2002-04-24 15:26 ` Target specific tests [Was: [RFA/Testsuite] help.exp] Fernando Nasser
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2002-04-23 21:04 UTC (permalink / raw)
  To: ezannoni; +Cc: fnasser, gdb-patches

Elena Zannoni writes:
> Oops, I committed the wildcard change already. 

My bad, I didn't read to the end of the thread before replying.

Any way that Fernando likes it, I like it.

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [RFA/Testsuite] help.exp
@ 2002-04-23 20:55 Michael Elizabeth Chastain
  2002-04-23 20:57 ` Elena Zannoni
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2002-04-23 20:55 UTC (permalink / raw)
  To: ezannoni, gdb-patches

It looks good to me.  I prefer the target-sensitive test to a wildcard
expression, because the target-sensitive test expresses the success
conditions more precisely.

I proofread it, but I did not test it.

I recommend this patch for approval.

Michael C

2002-04-23  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.base/help.exp: Change 'help status' to allow for PowerPC
	differences.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [RFA/Testsuite] help.exp
@ 2002-04-23 16:06 Elena Zannoni
  2002-04-23 16:35 ` Michael Snyder
  2002-04-23 16:39 ` Fernando Nasser
  0 siblings, 2 replies; 12+ messages in thread
From: Elena Zannoni @ 2002-04-23 16:06 UTC (permalink / raw)
  To: gdb-patches


The recent changes to help.exp eliminating the wildcards introduced a few
failures on the powerpc.

How about this to deal with the difference in output for the powerpc
vs. other targets?

Elena


2002-04-23  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.base/help.exp: Change 'help status' to allow for PowerPC
	differences.

Index: help.exp
===================================================================
RCS file: /cvs/uberbaum/gdb/testsuite/gdb.base/help.exp,v
retrieving revision 1.10
diff -u -p -r1.10 help.exp
--- help.exp	29 Mar 2002 01:19:11 -0000	1.10
+++ help.exp	23 Apr 2002 23:04:23 -0000
@@ -535,7 +535,13 @@ gdb_test "help source" "Read commands fr
 # test help stack
 gdb_test "help stack" "Examining the stack\..*\[\r\n\]+When the program being debugged stops, gdb selects the innermost frame\.\[\r\n\]+The commands below can be used to select other frames by number or address\.\[\r\n\]+List of commands:\[\r\n\]+backtrace -- Print backtrace of all stack frames\[\r\n\]+bt -- Print backtrace of all stack frames\[\r\n\]+down -- Select and print stack frame called by this one\[\r\n\]+frame -- Select and print a stack frame\[\r\n\]+return -- Make selected stack frame return to its caller\[\r\n\]+select-frame -- Select a stack frame without printing anything\[\r\n\]+up -- Select and print stack frame that called this one\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help stack"
 # test help status
-gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
+
+if [istarget "powerpc-*-*"] then {
+    gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+info powerpc -- Various POWERPC info specific commands\[\r\n\]+info powerpc altivec -- Display the contents of the AltiVec registers\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
+} else {
+    gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
+}
+
 # test help support
 # FIXME -- Ultrix hangs randomly on this very long output from gdb and
 # continues with its output only if something is sent to gdb.


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

end of thread, other threads:[~2002-04-24 22:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 21:04 [RFA/Testsuite] help.exp Michael Elizabeth Chastain
2002-04-24 15:26 ` Target specific tests [Was: [RFA/Testsuite] help.exp] Fernando Nasser
  -- strict thread matches above, loose matches on Subject: below --
2002-04-23 20:55 [RFA/Testsuite] help.exp Michael Elizabeth Chastain
2002-04-23 20:57 ` Elena Zannoni
2002-04-23 16:06 Elena Zannoni
2002-04-23 16:35 ` Michael Snyder
2002-04-23 16:47   ` Fernando Nasser
2002-04-23 16:51     ` Elena Zannoni
2002-04-23 17:23       ` Michael Snyder
2002-04-23 20:07         ` Elena Zannoni
2002-04-23 16:39 ` Fernando Nasser
2002-04-23 16:49   ` Elena Zannoni

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