Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Add -nx for "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp
@ 2012-09-01 15:00 Khoo Yit Phang
  2012-09-03  2:40 ` Khoo Yit Phang
  0 siblings, 1 reply; 5+ messages in thread
From: Khoo Yit Phang @ 2012-09-01 15:00 UTC (permalink / raw)
  To: GDB Patches; +Cc: Khoo Yit Phang

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

Hi,

The "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp was giving me spurious results since it was loading ~/.gdbinit. Here's a patch that adds the -nx option to prevent this problem.

Thanks,

Yit
September 1, 2012


[-- Attachment #2: xgdb-no-init.txt --]
[-- Type: text/plain, Size: 763 bytes --]

gdb/ChangeLog:

2012-09-01  Khoo Yit Phang  <khooyp@cs.umd.edu>

	Add -nx option to "xgdb" test to prevent spurious results
	due to ~/.gdbinit.
	* testsuite/gdb.gdb/selftest.exp: (run until breakpoint at
	captured_main) Add -nx option.

diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -303,7 +303,7 @@
     set timeout 600
 
     set description "run until breakpoint at captured_main"
-    gdb_test_multiple "run -nw" "$description" {
+    gdb_test_multiple "run -nw -nx" "$description" {
 	-re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*main.c:.*$gdb_prompt $" {
 	    pass "$description"
 	}

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

end of thread, other threads:[~2012-09-07 19:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01 15:00 [PATCH] Add -nx for "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp Khoo Yit Phang
2012-09-03  2:40 ` Khoo Yit Phang
2012-09-06 17:09   ` Khoo Yit Phang
2012-09-07 16:49   ` Jan Kratochvil
2012-09-07 19:27     ` Khoo Yit Phang

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