This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, testsuite] skip gdb.base/gdbinit-history.exp on remote hosts

This patch is very similar to the one I posted for gdb.base/gdbhistsize-history.exp yesterday:

The rationale is the same -- the test manipulates environment variables in the .exp script. When GDB is run on a remote host it doesn't inherit those environment variables, so the tests cannot possibly work.

OK to commit?


2015-09-16  Sandra Loosemore  <>

	* gdb.base/gdbinit-history.exp: Skip for remote-host testing.

diff --git a/gdb/testsuite/gdb.base/gdbinit-history.exp b/gdb/testsuite/gdb.base/gdbinit-history.exp
index 85ef12f..3f726d1 100644
--- a/gdb/testsuite/gdb.base/gdbinit-history.exp
+++ b/gdb/testsuite/gdb.base/gdbinit-history.exp
@@ -17,6 +17,14 @@
 # Test the setting of "history size" via $HOME/.gdbinit
+# This test depends on being able to set $HOME and $GDBHISTSIZE.
+# We cannot expect remote hosts to see environment variables set on the
+# local machine.
+if { [is_remote host] } {
+    unsupported "can't set environment variables on remote host"
+    return -1
 # Check that the history size is properly set to SIZE when reading the .gdbinit
 # file located in HOME with the environment variable GDBHISTSIZE optionally

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]