1 # |
1 # |
2 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
85 THIS_DIR=`pwd` |
77 THIS_DIR=`pwd` |
86 |
78 |
87 JAVA=${TESTJAVA}${FS}bin${FS}java |
79 JAVA=${TESTJAVA}${FS}bin${FS}java |
88 JAVAC=${TESTJAVA}${FS}bin${FS}javac |
80 JAVAC=${TESTJAVA}${FS}bin${FS}javac |
89 |
81 |
90 ${JAVA} ${BIT_FLAG} -version |
82 ${JAVA} ${TESTVMOPTS} -version |
91 |
83 |
92 # Current directory is scratch directory, copy all the test source there |
84 # Current directory is scratch directory, copy all the test source there |
93 # (for the subsequent moves to work). |
85 # (for the subsequent moves to work). |
94 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
86 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
95 |
87 |
111 # Rename the class file, so the custom loader (and not the system loader) will find it |
103 # Rename the class file, so the custom loader (and not the system loader) will find it |
112 ${MV} many_loader.class many_loader.impl2 |
104 ${MV} many_loader.class many_loader.impl2 |
113 ${MV} many_loader.impl1 many_loader.class |
105 ${MV} many_loader.impl1 many_loader.class |
114 ${RM} many_loader.java |
106 ${RM} many_loader.java |
115 |
107 |
116 ${JAVA} ${BIT_FLAG} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 |
108 ${JAVA} ${TESTVMOPTS} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 |
117 grep "loader constraint" test.out |
109 grep "loader constraint" test.out |
118 exit $? |
110 exit $? |
119 |
111 |