This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR testsuite/40709: Revision 149113 caused testsuite error


set_ld_library_path_env_vars fails if ld_library_path doesn't exist.  We
can set ld_library_path to "" before calling set_ld_library_path_env_vars.
Or we can set it to "" in set_ld_library_path_env_vars. This patch
does latter. OK for trunk?

Thanks.


H.J.
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/40709
	* lib/target-libpath.exp (set_ld_library_path_env_vars): Set
	ld_library_path to "" if it doesn't exist.

--- gcc/testsuite/lib/target-libpath.exp.pr40709	2009-07-10 09:05:22.000000000 -0700
+++ gcc/testsuite/lib/target-libpath.exp	2009-07-10 09:25:46.000000000 -0700
@@ -91,6 +91,10 @@ proc set_ld_library_path_env_vars { } {
 
     set ld_library_path_multilib [board_info target multilib_flags]
 
+    if { ![info exists ld_library_path] } {
+        set ld_library_path ""
+    }
+
     foreach spec $ld_library_path_vars {
 	set var [lindex $spec 0]
 	set lvar [string tolower $var]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]