2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu>
authorYit Phang Khoo <khooyp@sourceware.org>
Sat, 8 Sep 2012 05:29:21 +0000 (05:29 +0000)
committerYit Phang Khoo <khooyp@sourceware.org>
Sat, 8 Sep 2012 05:29:21 +0000 (05:29 +0000)
Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to
avoid spurious results due to ~/.gdbinit.
* gdb.gdb/complaint.exp (setup_test): Replace -nw option with
$INTERNAL_GDBFLAGS in run command.
* gdb.gdb/observer.exp (setup_test): Ditto.
* gdb.gdb/selftest.exp (test_with_self): Ditto.
* gdb.gdb/xfullpath.exp (setup_test): Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/complaints.exp
gdb/testsuite/gdb.gdb/observer.exp
gdb/testsuite/gdb.gdb/selftest.exp
gdb/testsuite/gdb.gdb/xfullpath.exp

index bea167839e84d739efd20e4a3cb610c768a4932d..842fc154ec2a4c7b8bd6d97e8abab58000aefeab 100644 (file)
@@ -1,3 +1,13 @@
+2012-09-08  Khoo Yit Phang  <khooyp@cs.umd.edu>
+
+       Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to
+       avoid spurious results due to ~/.gdbinit.
+       * gdb.gdb/complaint.exp (setup_test): Replace -nw option with
+       $INTERNAL_GDBFLAGS in run command.
+       * gdb.gdb/observer.exp (setup_test): Ditto.
+       * gdb.gdb/selftest.exp (test_with_self): Ditto.
+       * gdb.gdb/xfullpath.exp (setup_test): Ditto.
+
 2012-09-06  Doug Evans  <dje@google.com>
 
        * boards/fission.exp: New file.
index 97a327002f2045c7448ac52e7bf7fe10b70e128d..fd651a578fefb0876919a187239cca02fd1504ef 100644 (file)
@@ -31,6 +31,7 @@ if [target_info exists gdb,noinferiorio] {
 proc setup_test { executable } {
     global gdb_prompt
     global timeout
+    global INTERNAL_GDBFLAGS
 
     # load yourself into the debugger
     # This can take a relatively long time, particularly for testing where
@@ -73,7 +74,7 @@ proc setup_test { executable } {
     set timeout 600
 
     set description "run until breakpoint at captured_command_loop"
-    gdb_test_multiple "run -nw" "$description" {
+    gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" {
         -re "Starting program.*Breakpoint \[0-9\]+,.*captured_command_loop .data.* at .*main.c:.*$gdb_prompt $" {
             pass "$description"
         }
index 47a4a113cd8e377641b74d29401e2526486f2d27..93c08a4955ea7616d7223d9afdd0975e92e3d841 100644 (file)
@@ -25,6 +25,7 @@ if { [is_remote target] || ![isnative] } then {
 proc setup_test { executable } {
     global gdb_prompt
     global timeout
+    global INTERNAL_GDBFLAGS
 
     # load yourself into the debugger
     # This can take a relatively long time, particularly for testing where
@@ -67,7 +68,7 @@ proc setup_test { executable } {
     set timeout 600
 
     set description "run until breakpoint at captured_main"
-    gdb_test_multiple "run -nw" "$description" {
+    gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" {
         -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*main.c:.*$gdb_prompt $" {
             pass "$description"
         }
index 7645caf9892acb1bf0b1ceea17f22e4b119de932..e2e327f2a1b56265a33b10482c49b36467404d35 100644 (file)
@@ -242,6 +242,7 @@ proc test_with_self { executable } {
     global det_file
     global decimal
     global timeout
+    global INTERNAL_GDBFLAGS
 
     # load yourself into the debugger
     # This can take a relatively long time, particularly for testing where
@@ -303,7 +304,7 @@ proc test_with_self { executable } {
     set timeout 600
 
     set description "run until breakpoint at captured_main"
-    gdb_test_multiple "run -nw" "$description" {
+    gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" {
        -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*main.c:.*$gdb_prompt $" {
            pass "$description"
        }
index 0ebf824687b8903e1aa5d23bc7a88b3d9aea2172..98b1ae989826779f4ef45740bf853e55f2bd5d62 100644 (file)
@@ -25,6 +25,7 @@ if { [is_remote target] || ![isnative] } then {
 proc setup_test { executable } {
     global gdb_prompt
     global timeout
+    global INTERNAL_GDBFLAGS
 
     # load yourself into the debugger
     # This can take a relatively long time, particularly for testing where
@@ -67,7 +68,7 @@ proc setup_test { executable } {
     set timeout 600
 
     set description "run until breakpoint at captured_main"
-    gdb_test_multiple "run -nw" "$description" {
+    gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" {
         -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*main.c:.*$gdb_prompt $" {
             pass "$description"
         }
This page took 0.039755 seconds and 4 git commands to generate.