Mercurial > hg > truffle
diff test/runtime/jsig/Test8017498.sh @ 15280:417e2ae45b89
Merge
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 22 Apr 2014 18:22:40 -0700 |
parents | 4ca6dc0799b6 |
children |
line wrap: on
line diff
--- a/test/runtime/jsig/Test8017498.sh Sun Apr 20 20:37:27 2014 -0700 +++ b/test/runtime/jsig/Test8017498.sh Tue Apr 22 18:22:40 2014 -0700 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -29,10 +29,8 @@ ## @bug 8017498 ## @bug 8020791 ## @bug 8021296 -## @bug 8022301 -## @bug 8025519 ## @summary sigaction(sig) results in process hang/timed-out if sig is much greater than SIGRTMAX -## @run shell/timeout=60 Test8017498.sh +## @run shell/timeout=30 Test8017498.sh ## if [ "${TESTSRC}" = "" ] @@ -44,8 +42,6 @@ ## Adding common setup Variables for running shell tests. . ${TESTSRC}/../../test_env.sh -EXTRA_CFLAG= - # set platform-dependent variables OS=`uname -s` case "$OS" in @@ -56,9 +52,11 @@ echo "WARNING: gcc not found. Cannot execute test." 2>&1 exit 0; fi - MY_LD_PRELOAD=${TESTJAVA}${FS}jre${FS}lib${FS}${VM_CPU}${FS}libjsig.so - if [ "$VM_BITS" == "32" ] && [ "$VM_CPU" != "arm" ] && [ "$VM_CPU" != "ppc" ]; then - EXTRA_CFLAG=-m32 + if [ "$VM_BITS" = "64" ] + then + MY_LD_PRELOAD=${TESTJAVA}${FS}jre${FS}lib${FS}amd64${FS}libjsig.so + else + MY_LD_PRELOAD=${TESTJAVA}${FS}jre${FS}lib${FS}i386${FS}libjsig.so fi echo MY_LD_PRELOAD = ${MY_LD_PRELOAD} ;; @@ -71,13 +69,12 @@ THIS_DIR=. cp ${TESTSRC}${FS}*.java ${THIS_DIR} -${COMPILEJAVA}${FS}bin${FS}javac *.java +${TESTJAVA}${FS}bin${FS}javac *.java $gcc_cmd -DLINUX -fPIC -shared \ - ${EXTRA_CFLAG} -z noexecstack \ -o ${TESTSRC}${FS}libTestJNI.so \ - -I${COMPILEJAVA}${FS}include \ - -I${COMPILEJAVA}${FS}include${FS}linux \ + -I${TESTJAVA}${FS}include \ + -I${TESTJAVA}${FS}include${FS}linux \ ${TESTSRC}${FS}TestJNI.c # run the java test in the background