From 78425caa1d62d6efbe50d2d11c269b32ca5eff73 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sun, 22 Mar 2009 14:59:14 +0000 Subject: target-libpath.exp (set_ld_library_path_env_vars): Correct TEST_GCC_EXEC_PREFIX test to check existence as a tcl variable... * lib/target-libpath.exp (set_ld_library_path_env_vars): Correct TEST_GCC_EXEC_PREFIX test to check existence as a tcl variable, not environment variable. From-SVN: r144997 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/target-libpath.exp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d651dd..abad6ba 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-03-22 Hans-Peter Nilsson + + * lib/target-libpath.exp (set_ld_library_path_env_vars): + Correct TEST_GCC_EXEC_PREFIX test to check existence as a tcl + variable, not environment variable. + 2009-03-21 Jason Merrill PR c++/28879 diff --git a/gcc/testsuite/lib/target-libpath.exp b/gcc/testsuite/lib/target-libpath.exp index 760f375..c95cba6 100644 --- a/gcc/testsuite/lib/target-libpath.exp +++ b/gcc/testsuite/lib/target-libpath.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ proc set_ld_library_path_env_vars { } { # Set GCC_EXEC_PREFIX for the compiler under test to pick up files not in # the build tree from a specified location (normally the install tree). - if [info exists env(TEST_GCC_EXEC_PREFIX)] { + if [info exists TEST_GCC_EXEC_PREFIX] { setenv GCC_EXEC_PREFIX "$TEST_GCC_EXEC_PREFIX" } -- cgit v1.1