This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Skip gdb.base/gdbinit-history.exp on remote hosts.
- From: Sandra Loosemore <sandra at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 14 Dec 2015 23:18:08 -0000
- Subject: [binutils-gdb] Skip gdb.base/gdbinit-history.exp on remote hosts.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5d978e177217d8e9da8648498f0592b5cd885e69
commit 5d978e177217d8e9da8648498f0592b5cd885e69
Author: Sandra Loosemore <sandra@codesourcery.com>
Date: Mon Dec 14 15:17:23 2015 -0800
Skip gdb.base/gdbinit-history.exp on remote hosts.
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/gdbinit-history.exp: Skip for remote-host testing.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.base/gdbinit-history.exp | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7f3c05c..b46ccbd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
+ * gdb.base/gdbinit-history.exp: Skip for remote-host testing.
+
+2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
+
* gdb.base/gdbhistsize-history.exp: Skip for remote-host testing.
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
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