Mercurial > hg > truffle
comparison test/runtime/7107135/Test7107135.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 | 4510a3502166 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14481:016b6a289fc4 | 14482:5e7eb4244604 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # | 3 # |
4 # Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. | 4 # Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
5 # Copyright (c) 2011 SAP AG. All Rights Reserved. | 5 # Copyright (c) 2011 SAP AG. All Rights Reserved. |
6 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 6 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7 # | 7 # |
8 # This code is free software; you can redistribute it and/or modify it | 8 # This code is free software; you can redistribute it and/or modify it |
9 # under the terms of the GNU General Public License version 2 only, as | 9 # under the terms of the GNU General Public License version 2 only, as |
27 ## | 27 ## |
28 ## @ignore 8025519 | 28 ## @ignore 8025519 |
29 ## @test Test7107135.sh | 29 ## @test Test7107135.sh |
30 ## @bug 7107135 | 30 ## @bug 7107135 |
31 ## @bug 8021296 | 31 ## @bug 8021296 |
32 ## @bug 8025519 | |
32 ## @summary Stack guard pages lost after loading library with executable stack. | 33 ## @summary Stack guard pages lost after loading library with executable stack. |
33 ## @run shell Test7107135.sh | 34 ## @run shell Test7107135.sh |
34 ## | 35 ## |
35 | 36 |
36 if [ "${TESTSRC}" = "" ] | 37 if [ "${TESTSRC}" = "" ] |
62 ARCH=`uname -m` | 63 ARCH=`uname -m` |
63 | 64 |
64 THIS_DIR=. | 65 THIS_DIR=. |
65 | 66 |
66 cp ${TESTSRC}${FS}*.java ${THIS_DIR} | 67 cp ${TESTSRC}${FS}*.java ${THIS_DIR} |
67 ${TESTJAVA}${FS}bin${FS}javac *.java | 68 ${COMPILEJAVA}${FS}bin${FS}javac *.java |
68 | 69 |
69 $gcc_cmd -fPIC -shared -c -o test.o \ | 70 $gcc_cmd -fPIC -shared -c -o test.o \ |
70 -I${TESTJAVA}${FS}include -I${TESTJAVA}${FS}include${FS}linux \ | 71 -I${COMPILEJAVA}${FS}include -I${COMPILEJAVA}${FS}include${FS}linux \ |
71 ${TESTSRC}${FS}test.c | 72 ${TESTSRC}${FS}test.c |
72 | 73 |
73 ld -shared -z execstack -o libtest-rwx.so test.o | 74 ld -shared -z execstack -o libtest-rwx.so test.o |
74 ld -shared -z noexecstack -o libtest-rw.so test.o | 75 ld -shared -z noexecstack -o libtest-rw.so test.o |
75 | 76 |