From: Khoo Yit Phang <khooyp@cs.umd.edu>
To: Khoo Yit Phang <khooyp@cs.umd.edu>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add -nx for "xgdb" test in gdb/testsuite/gdb.gdb/selftest.exp
Date: Mon, 03 Sep 2012 02:40:00 -0000 [thread overview]
Message-ID: <C00E5210-DA44-43D8-810E-9F1C440198F2@cs.umd.edu> (raw)
In-Reply-To: <387EE3E3-80B3-42E0-AFE7-1BAA78B422D3@cs.umd.edu>
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
Hi,
I found a few more tests with the same issue, here's an updated patch that covers those tests.
Thanks,
Yit
September 2, 2012
[-- Attachment #2: xgdb-no-init.txt --]
[-- Type: text/plain, Size: 2609 bytes --]
Add -nx option to "xgdb" test to prevent spurious results due to ~/.gdbinit.
gdb/testsuite/ChangeLog
2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
Add -nx option to "xgdb" tests to avoid spurious results due to
~/.gdbinit.
* gdb.gdb/complaint.exp (setup_test): Add -nx option to run
command.
* gdb.gdb/observer.exp (setup_test): Ditto.
* gdb.gdb/selftest.exp (test_with_self): Ditto.
* gdb.gdb/xfullpath.exp (setup_test): Ditto.
diff --git a/gdb/testsuite/gdb.gdb/complaints.exp b/gdb/testsuite/gdb.gdb/complaints.exp
--- a/gdb/testsuite/gdb.gdb/complaints.exp
+++ b/gdb/testsuite/gdb.gdb/complaints.exp
@@ -73,7 +73,7 @@
set timeout 600
set description "run until breakpoint at captured_command_loop"
- gdb_test_multiple "run -nw" "$description" {
+ gdb_test_multiple "run -nw -nx" "$description" {
-re "Starting program.*Breakpoint \[0-9\]+,.*captured_command_loop .data.* at .*main.c:.*$gdb_prompt $" {
pass "$description"
}
diff --git a/gdb/testsuite/gdb.gdb/observer.exp b/gdb/testsuite/gdb.gdb/observer.exp
--- a/gdb/testsuite/gdb.gdb/observer.exp
+++ b/gdb/testsuite/gdb.gdb/observer.exp
@@ -67,7 +67,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"
}
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"
}
diff --git a/gdb/testsuite/gdb.gdb/xfullpath.exp b/gdb/testsuite/gdb.gdb/xfullpath.exp
--- a/gdb/testsuite/gdb.gdb/xfullpath.exp
+++ b/gdb/testsuite/gdb.gdb/xfullpath.exp
@@ -67,7 +67,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"
}
[-- Attachment #3: Type: text/plain, Size: 330 bytes --]
On Sep 1, 2012, at 11:00 AM, Khoo Yit Phang wrote:
> 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
>
> <xgdb-no-init.txt>
next prev parent reply other threads:[~2012-09-03 2:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-01 15:00 Khoo Yit Phang
2012-09-03 2:40 ` Khoo Yit Phang [this message]
2012-09-06 17:09 ` Khoo Yit Phang
2012-09-07 16:49 ` Jan Kratochvil
2012-09-07 19:27 ` Khoo Yit Phang
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=C00E5210-DA44-43D8-810E-9F1C440198F2@cs.umd.edu \
--to=khooyp@cs.umd.edu \
--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