changeset 4930:391dafd30fba

7141465: macosx] com/sun/jdi/PrivateTransportTest.sh fails on Mac OS X Reviewed-by: michaelm
author khazra
date Wed, 01 Feb 2012 04:43:47 -0800
parents 5b524b43fdd1
children f977c4806f4c
files test/com/sun/jdi/PrivateTransportTest.sh
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/PrivateTransportTest.sh	Wed Feb 01 01:41:21 2012 -0800
+++ b/test/com/sun/jdi/PrivateTransportTest.sh	Wed Feb 01 04:43:47 2012 -0800
@@ -127,6 +127,9 @@
     xx=`find ${jreloc}/lib -name libdt_socket.so`
     libloc=`dirname ${xx}`
     ;;
+  Darwin)
+    libloc=${jreloc}/lib
+    ;;
   Windows*)
     is_windows=true
     libloc=${jreloc}/bin
@@ -160,6 +163,19 @@
     PATH="${PATH}${sep}${libdir}"
     export PATH
     echo PATH=${PATH}
+elif [ -f ${libloc}/libdt_socket.dylib ]; then
+    fullpath=${libdir}/lib${private_transport}.dylib
+    rm -f ${fullpath}
+    echo cp ${libloc}/libdt_socket.dylib ${fullpath}
+    cp ${libloc}/libdt_socket.dylib ${fullpath}
+    # make sure we can find libraries in current directory
+    if [ "${LD_LIBRARY_PATH}" = "" ] ; then
+        LD_LIBRARY_PATH=${libdir}
+    else
+        LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libdir}
+    fi
+    export LD_LIBRARY_PATH
+    echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
 elif [ -f ${libloc}/libdt_socket.so ] ; then
     fullpath=${libdir}/lib${private_transport}.so
     rm -f ${fullpath}