diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-11-30 08:25:17 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-11-30 08:25:17 +0000 |
commit | 514f64256c6ad7877e1f2a171a722168de879b23 (patch) | |
tree | 1a8a974a6ce7f05260e342c115161a700c9c73e2 /gdb/testsuite/gdb.base | |
parent | 4255c8d248bc8e2d5e8286dc600ad267bd788c59 (diff) | |
download | gdb-514f64256c6ad7877e1f2a171a722168de879b23.zip gdb-514f64256c6ad7877e1f2a171a722168de879b23.tar.gz gdb-514f64256c6ad7877e1f2a171a722168de879b23.tar.bz2 |
* gdb.base/testenv.exp: Skip on remote targets. Unset global
environment variable after test completed.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/testenv.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/testenv.exp b/gdb/testsuite/gdb.base/testenv.exp index ad39f14..dae35b6 100644 --- a/gdb/testsuite/gdb.base/testenv.exp +++ b/gdb/testsuite/gdb.base/testenv.exp @@ -22,6 +22,10 @@ if $tracelevel then { strace $tracelevel } +# There's no support for passing environment variables in the remote protocol. +if { [is_remote target] } { + return 0 +} set testfile "testenv" set srcfile ${testfile}.c @@ -119,3 +123,7 @@ gdb_test "continue" \ "Test with TEST_GDB_GLOBAL unset" gdb_exit + +# Clear environment in case we're doing multiple runs +unset env(TEST_GDB_GLOBAL) + |