Mercurial > hg > graal-jvmci-8
comparison test/runtime/6929067/Test6929067.sh @ 14274:e0035752234f
6945460: [TESTBUG] runtime/6929067/Test6929067.sh
Summary: Change link order for the test
Reviewed-by: coleenp, mgerdin
author | dsimms |
---|---|
date | Wed, 15 Jan 2014 11:46:19 +0100 |
parents | e567d5afd4dd |
children | 5e7eb4244604 |
comparison
equal
deleted
inserted
replaced
14251:b3a9c629e2d5 | 14274:e0035752234f |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 ## | 3 ## |
4 ## @ignore 8028740 | |
5 ## @test Test6929067.sh | 4 ## @test Test6929067.sh |
6 ## @bug 6929067 | 5 ## @bug 6929067 |
7 ## @bug 8021296 | 6 ## @bug 8021296 |
8 ## @summary Stack guard pages should be removed when thread is detached | 7 ## @summary Stack guard pages should be removed when thread is detached |
9 ## @compile T.java | |
10 ## @run shell Test6929067.sh | 8 ## @run shell Test6929067.sh |
11 ## | 9 ## |
12 set -x | 10 |
13 if [ "${TESTSRC}" = "" ] | 11 if [ "${TESTSRC}" = "" ] |
14 then | 12 then |
15 TESTSRC=${PWD} | 13 TESTSRC=${PWD} |
16 echo "TESTSRC not set. Using "${TESTSRC}" as default" | 14 echo "TESTSRC not set. Using "${TESTSRC}" as default" |
17 fi | 15 fi |
112 | 110 |
113 | 111 |
114 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH | 112 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH |
115 export LD_LIBRARY_PATH | 113 export LD_LIBRARY_PATH |
116 | 114 |
117 cp ${TESTSRC}${FS}invoke.c . | 115 cp ${TESTSRC}${FS}*.java ${THIS_DIR} |
118 | 116 ${TESTJAVA}${FS}bin${FS}javac *.java |
119 # Copy the result of our @compile action: | |
120 cp ${TESTCLASSES}${FS}T.class . | |
121 | 117 |
122 echo "Architecture: ${ARCH}" | 118 echo "Architecture: ${ARCH}" |
123 echo "Compilation flag: ${COMP_FLAG}" | 119 echo "Compilation flag: ${COMP_FLAG}" |
124 echo "VM type: ${VMTYPE}" | 120 echo "VM type: ${VMTYPE}" |
125 # Note pthread may not be found thus invoke creation will fail to be created. | 121 # Note pthread may not be found thus invoke creation will fail to be created. |
126 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look | 122 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look |
127 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. | 123 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. |
128 | 124 |
129 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ | 125 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ |
130 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ | 126 -I${TESTJAVA}/include -I${TESTJAVA}/include/linux \ |
131 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ | 127 -L${TESTJAVA}/jre/lib/${ARCH}/${VMTYPE} \ |
132 -ljvm -lpthread invoke.c | 128 ${TESTSRC}${FS}invoke.c -ljvm -lpthread |
133 | 129 |
134 ./invoke | 130 ./invoke |
135 exit $? | 131 exit $? |