This is the mail archive of the gdb-cvs@sourceware.org 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]

[binutils-gdb] Skip gdb.base/gdbhistsize-history.exp on remote hosts.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e763b8690ff486d9783f43ce0f4bbb7c9e81b6c

commit 7e763b8690ff486d9783f43ce0f4bbb7c9e81b6c
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Mon Dec 14 15:14:03 2015 -0800

    Skip gdb.base/gdbhistsize-history.exp on remote hosts.
    
    2015-12-14  Sandra Loosemore  <sandra@codesourcery.com>
    
    	gdb/testsuite/
    	* gdb.base/gdbhistsize-history.exp: Skip for remote-host testing.

Diff:
---
 gdb/testsuite/ChangeLog                        | 4 ++++
 gdb/testsuite/gdb.base/gdbhistsize-history.exp | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9228e09..7f3c05c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
 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>
+
 	* gdb.base/completion.exp: Skip tests that interrupt GDB with
 	ctrl-C if nointerrupts target property is set.
 	* gdb.base/double-prompt-target-event-error.exp: Likewise.
diff --git a/gdb/testsuite/gdb.base/gdbhistsize-history.exp b/gdb/testsuite/gdb.base/gdbhistsize-history.exp
index 75d98e1..a5d0e43 100644
--- a/gdb/testsuite/gdb.base/gdbhistsize-history.exp
+++ b/gdb/testsuite/gdb.base/gdbhistsize-history.exp
@@ -18,6 +18,14 @@
 # Test the setting of "history size" via the GDBHISTSIZE environment variable
 
 
+# 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 the environment
 # variable ENV_VAR is set to GDBHISTSIZE.


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