test/runtime/6929067/Test6929067.sh

changeset 5453
f9ee986a9fea
parent 4831
04d6d4322c6a
child 6133
e567d5afd4dd
     1.1 --- a/test/runtime/6929067/Test6929067.sh	Fri Jul 26 15:24:32 2013 +0000
     1.2 +++ b/test/runtime/6929067/Test6929067.sh	Tue Jul 30 14:14:25 2013 -0700
     1.3 @@ -3,6 +3,7 @@
     1.4  ##
     1.5  ## @test Test6929067.sh
     1.6  ## @bug 6929067
     1.7 +## @bug 8021296
     1.8  ## @summary Stack guard pages should be removed when thread is detached
     1.9  ## @compile T.java
    1.10  ## @run shell Test6929067.sh
    1.11 @@ -21,6 +22,11 @@
    1.12  OS=`uname -s`
    1.13  case "$OS" in
    1.14    Linux)
    1.15 +    gcc_cmd=`which gcc`
    1.16 +    if [ "x$gcc_cmd" == "x" ]; then
    1.17 +        echo "WARNING: gcc not found. Cannot execute test." 2>&1
    1.18 +        exit 0;
    1.19 +    fi
    1.20      NULL=/dev/null
    1.21      PS=":"
    1.22      FS="/"
    1.23 @@ -119,10 +125,10 @@
    1.24  # Check to ensure you have a /usr/lib/libpthread.so if you don't please look
    1.25  # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation.
    1.26  
    1.27 -gcc -DLINUX ${COMP_FLAG} -o invoke \
    1.28 -  -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \
    1.29 -  -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \
    1.30 -  -ljvm -lpthread invoke.c
    1.31 +$gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \
    1.32 +    -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \
    1.33 +    -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \
    1.34 +    -ljvm -lpthread invoke.c
    1.35  
    1.36  ./invoke
    1.37  exit $?

mercurial