| OLD | NEW |
| 1 # Copyright 2011-2012 Free Software Foundation, Inc. | 1 # Copyright 2011-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
| 4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
| 5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 |
| 16 # This file was written by Pierre Muller <muller@ics.u-strasbg.fr> | 16 # This file was written by Pierre Muller <muller@ics.u-strasbg.fr> |
| 17 # | 17 # |
| 18 # Check if environment variables are correctly passed to inferiors | 18 # Check if environment variables are correctly passed to inferiors |
| 19 # | 19 # |
| 20 | 20 |
| 21 if $tracelevel then { | |
| 22 strace $tracelevel | |
| 23 } | |
| 24 | |
| 25 # There's no support for passing environment variables in the remote protocol. | 21 # There's no support for passing environment variables in the remote protocol. |
| 26 if { [is_remote target] } { | 22 if { [is_remote target] } { |
| 27 return 0 | 23 return 0 |
| 28 } | 24 } |
| 29 | 25 |
| 30 set testfile "testenv" | 26 set testfile "testenv" |
| 31 set srcfile ${testfile}.c | 27 set srcfile ${testfile}.c |
| 32 set binfile ${testfile} | 28 set binfile ${testfile} |
| 33 | 29 |
| 34 # Compile binary | 30 # Compile binary |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 # Second test with one TEST_GDB_VAR | 116 # Second test with one TEST_GDB_VAR |
| 121 gdb_test "continue" \ | 117 gdb_test "continue" \ |
| 122 ".*Program found 0 variables starting with TEST_GDB.*" \ | 118 ".*Program found 0 variables starting with TEST_GDB.*" \ |
| 123 "Test with TEST_GDB_GLOBAL unset" | 119 "Test with TEST_GDB_GLOBAL unset" |
| 124 | 120 |
| 125 gdb_exit | 121 gdb_exit |
| 126 | 122 |
| 127 # Clear environment in case we're doing multiple runs | 123 # Clear environment in case we're doing multiple runs |
| 128 unset env(TEST_GDB_GLOBAL) | 124 unset env(TEST_GDB_GLOBAL) |
| 129 | 125 |
| OLD | NEW |