source: trunk/openjdk/hotspot/test/runtime/6929067/Test6929067.sh

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 1.2 KB
Line 
1#!/bin/sh
2
3##
4## @test Test6929067.sh
5## @bug 6929067
6## @summary Stack guard pages should be removed when thread is detached
7## @run shell Test6929067.sh
8##
9
10if [ "${TESTSRC}" = "" ]
11then TESTSRC=.
12fi
13
14if [ "${TESTJAVA}" = "" ]
15then
16 PARENT=`dirname \`which java\``
17 TESTJAVA=`dirname ${PARENT}`
18 echo "TESTJAVA not set, selecting " ${TESTJAVA}
19 echo "If this is incorrect, try setting the variable manually."
20fi
21
22BIT_FLAG=""
23
24# set platform-dependent variables
25OS=`uname -s`
26case "$OS" in
27 Linux)
28 NULL=/dev/null
29 PS=":"
30 FS="/"
31 ;;
32 SunOS | Windows_* )
33 NULL=NUL
34 PS=";"
35 FS="\\"
36 echo "Test passed; only valid for Linux"
37 exit 0;
38 ;;
39 * )
40 echo "Unrecognized system!"
41 exit 1;
42 ;;
43esac
44
45LD_LIBRARY_PATH=.:${TESTJAVA}/jre/lib/i386/client:/usr/openwin/lib:/usr/dt/lib:/usr/lib:$LD_LIBRARY_PATH
46export LD_LIBRARY_PATH
47
48THIS_DIR=`pwd`
49
50cp ${TESTSRC}${FS}invoke.c ${THIS_DIR}
51cp ${TESTSRC}${FS}T.java ${THIS_DIR}
52
53
54${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -fullversion
55
56${TESTJAVA}${FS}bin${FS}javac T.java
57
58gcc -o invoke -I${TESTJAVA}/include -I${TESTJAVA}/include/linux invoke.c ${TESTJAVA}/jre/lib/i386/client/libjvm.so
59./invoke
60exit $?
Note: See TracBrowser for help on using the repository browser.