From 7e763b8690ff486d9783f43ce0f4bbb7c9e81b6c Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Mon, 14 Dec 2015 15:14:03 -0800 Subject: [PATCH] Skip gdb.base/gdbhistsize-history.exp on remote hosts. 2015-12-14 Sandra Loosemore gdb/testsuite/ * gdb.base/gdbhistsize-history.exp: Skip for remote-host testing. --- 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 9228e09f59..7f3c05c1c4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-12-14 Sandra Loosemore + + * gdb.base/gdbhistsize-history.exp: Skip for remote-host testing. + 2015-12-14 Sandra Loosemore * gdb.base/completion.exp: Skip tests that interrupt GDB with diff --git a/gdb/testsuite/gdb.base/gdbhistsize-history.exp b/gdb/testsuite/gdb.base/gdbhistsize-history.exp index 75d98e162f..a5d0e43263 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.