From 2a65d4b92c71e42bd875a5d17a25df57bfb76577 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Mon, 16 Jun 2014 22:16:21 -0700 Subject: [PATCH] Fix run-test for OSX. Change-Id: I6b5dfeba5a3d04fa2bea3fde4604fa84ed362615 --- test/etc/host-run-test-jar | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/test/etc/host-run-test-jar b/test/etc/host-run-test-jar index 5d6d16aa9..f6729745a 100755 --- a/test/etc/host-run-test-jar +++ b/test/etc/host-run-test-jar @@ -30,6 +30,9 @@ while true; do exit 1 fi LIB="$1" + if [ `uname` = "Darwin" ]; then + LIB=${LIB/%so/dylib} + fi shift elif [ "x$1" = "x--boot" ]; then shift @@ -110,10 +113,16 @@ if [ "$DEBUGGER" = "y" ]; then fi if [ "$GDB" = "y" ]; then - gdb=gdb - gdbargs="--args $exe" - # Enable for Emacs "M-x gdb" support. TODO: allow extra gdb arguments on command line. - # gdbargs="--annotate=3 $gdbargs" + if [ `uname` = "Darwin" ]; then + gdb=lldb + gdbargs="-- $exe" + exe= + else + gdb=gdb + gdbargs="--args $exe" + # Enable for Emacs "M-x gdb" support. TODO: allow extra gdb arguments on command line. + # gdbargs="--annotate=3 $gdbargs" + fi fi if [ "$INTERPRETER" = "y" ]; then -- 2.11.0