This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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] testsuite fix for solaris 64bit testing


Hi all,

during some xmas testing I encountered tons of failures when testing solaris -m64 with a 32 bit native compiler.

The reason was a simple library mismatch. Setting the LD_LIBRARY_PATH_64 for solaris -m64 reduced the failure count to a reasonable minimum with about 28000 passes and about 200 failures. 32/64bit libjava testing with mauve.

Otherwise the results are much much worse.

Ok for mainline?

Andreas

2003-12-26 Andreas Tobler <a.tobler@schweiz.ch>

	* lib/libjava.exp: Add LD_LIBRARY_PATH_64 to get proper
	path setting for solaris 64 bit testing.

Index: lib/libjava.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.55
diff -u -r1.55 libjava.exp
--- lib/libjava.exp     19 Nov 2003 04:53:29 -0000      1.55
+++ lib/libjava.exp     26 Dec 2003 15:52:29 -0000
@@ -181,7 +181,11 @@
            if [info exists env(DYLD_LIBRARY_PATH)] {
                set original_ld_library_path $env(DYLD_LIBRARY_PATH)
            } else {
-               set original_ld_library_path ""
+               if [info exists env(LD_LIBRARY_PATH_64)] {
+                   set original_ld_library_path $env(LD_LIBRARY_PATH_64)
+               } else {
+                   set original_ld_library_path ""
+               }
            }
        }
     }
@@ -364,6 +368,7 @@
     setenv LD_LIBRARY_PATH "$ld_library_path:$original_ld_library_path"
     setenv SHLIB_PATH "$ld_library_path:$original_ld_library_path"
     setenv DYLD_LIBRARY_PATH "$ld_library_path:$original_ld_library_path"
+    setenv LD_LIBRARY_PATH_64 "$ld_library_path:$original_ld_library_path"

verbose "LD_LIBRARY_PATH = $env(LD_LIBRARY_PATH)"

@@ -461,6 +466,7 @@
   setenv LD_LIBRARY_PATH $newval
   setenv SHLIB_PATH $newval
   setenv DYLD_LIBRARY_PATH $newval
+  setenv LD_LIBRARY_PATH_64 $newval

verbose "LD_LIBRARY_PATH=$env(LD_LIBRARY_PATH)"

@@ -472,6 +478,7 @@
   setenv LD_LIBRARY_PATH $lib_path
   setenv SHLIB_PATH $lib_path
   setenv DYLD_LIBRAY_PATH $lib_path
+  setenv LD_LIBRARY_PATH_64 $lib_path

   if {$status != "pass"} {
     verbose "got $output"


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