Skip gdb.base/gdbinit-history.exp on remote hosts.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / gdbinit-history.exp
index 85ef12fa0a9ea73341bf6fd648e6ffe6ce9881dd..3f726d15abc92434cdff15bdad46f29ea846ba4f 100644 (file)
 
 # 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
This page took 0.023968 seconds and 4 git commands to generate.