30 ## @summary Stack guard pages lost after loading library with executable stack. |
30 ## @summary Stack guard pages lost after loading library with executable stack. |
31 ## @run shell Test7107135.sh |
31 ## @run shell Test7107135.sh |
32 ## |
32 ## |
33 |
33 |
34 if [ "${TESTSRC}" = "" ] |
34 if [ "${TESTSRC}" = "" ] |
35 then TESTSRC=. |
35 then |
|
36 TESTSRC=${PWD} |
|
37 echo "TESTSRC not set. Using "${TESTSRC}" as default" |
36 fi |
38 fi |
37 |
39 echo "TESTSRC=${TESTSRC}" |
38 if [ "${TESTJAVA}" = "" ] |
40 ## Adding common setup Variables for running shell tests. |
39 then |
41 . ${TESTSRC}/../../test_env.sh |
40 PARENT=`dirname \`which java\`` |
|
41 TESTJAVA=`dirname ${PARENT}` |
|
42 echo "TESTJAVA not set, selecting " ${TESTJAVA} |
|
43 echo "If this is incorrect, try setting the variable manually." |
|
44 fi |
|
45 |
|
46 BIT_FLAG="" |
|
47 |
42 |
48 # set platform-dependent variables |
43 # set platform-dependent variables |
49 OS=`uname -s` |
44 OS=`uname -s` |
50 case "$OS" in |
45 case "$OS" in |
51 Linux) |
46 Linux) |
52 NULL=/dev/null |
47 echo "Testing on Linux" |
53 PS=":" |
|
54 FS="/" |
|
55 ;; |
48 ;; |
56 *) |
49 *) |
57 NULL=NUL |
50 NULL=NUL |
58 PS=";" |
51 PS=";" |
59 FS="\\" |
52 FS="\\" |