Mercurial > hg > graal-compiler
comparison test/runtime/6929067/Test6929067.sh @ 14482:5e7eb4244604
8025519: [TESTBUG] runtime/7107135/Test7107135.sh need to use COMPILEJAVA for javac task
Summary: modified some tests to use COMPILEJAVA instead of TESTJAVA for javac and include path
Reviewed-by: dholmes, mseledtsov
author | ccheung |
---|---|
date | Mon, 24 Feb 2014 21:54:22 -0800 |
parents | e0035752234f |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14481:016b6a289fc4 | 14482:5e7eb4244604 |
---|---|
2 | 2 |
3 ## | 3 ## |
4 ## @test Test6929067.sh | 4 ## @test Test6929067.sh |
5 ## @bug 6929067 | 5 ## @bug 6929067 |
6 ## @bug 8021296 | 6 ## @bug 8021296 |
7 ## @bug 8025519 | |
7 ## @summary Stack guard pages should be removed when thread is detached | 8 ## @summary Stack guard pages should be removed when thread is detached |
8 ## @run shell Test6929067.sh | 9 ## @run shell Test6929067.sh |
9 ## | 10 ## |
10 | 11 |
11 if [ "${TESTSRC}" = "" ] | 12 if [ "${TESTSRC}" = "" ] |
111 | 112 |
112 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH | 113 LD_LIBRARY_PATH=.:${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE}:/usr/lib:$LD_LIBRARY_PATH |
113 export LD_LIBRARY_PATH | 114 export LD_LIBRARY_PATH |
114 | 115 |
115 cp ${TESTSRC}${FS}*.java ${THIS_DIR} | 116 cp ${TESTSRC}${FS}*.java ${THIS_DIR} |
116 ${TESTJAVA}${FS}bin${FS}javac *.java | 117 ${COMPILEJAVA}${FS}bin${FS}javac *.java |
117 | 118 |
118 echo "Architecture: ${ARCH}" | 119 echo "Architecture: ${ARCH}" |
119 echo "Compilation flag: ${COMP_FLAG}" | 120 echo "Compilation flag: ${COMP_FLAG}" |
120 echo "VM type: ${VMTYPE}" | 121 echo "VM type: ${VMTYPE}" |
121 # Note pthread may not be found thus invoke creation will fail to be created. | 122 # Note pthread may not be found thus invoke creation will fail to be created. |
122 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look | 123 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look |
123 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. | 124 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. |
124 | 125 |
125 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ | 126 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ |
126 -I${TESTJAVA}/include -I${TESTJAVA}/include/linux \ | 127 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ |
127 -L${TESTJAVA}/jre/lib/${ARCH}/${VMTYPE} \ | 128 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ |
128 ${TESTSRC}${FS}invoke.c -ljvm -lpthread | 129 ${TESTSRC}${FS}invoke.c -ljvm -lpthread |
129 | 130 |
130 ./invoke | 131 ./invoke |
131 exit $? | 132 exit $? |