* gdb.base/testenv.exp: Skip on remote targets. Unset global

environment variable after test completed.
This commit is contained in:
Ulrich Weigand 2011-11-30 08:25:17 +00:00
parent 4255c8d248
commit 514f64256c
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
* gdb.base/testenv.exp: Skip on remote targets. Unset global
environment variable after test completed.
2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
* gdb.base/solib-nodir.exp: Skip if remote target.

View File

@ -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)