File tree 10 files changed +22
-22
lines changed
Security/ClassLoaderDeadlock
provider/PolicyFile/getinstance
10 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2004, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2004, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -91,7 +91,7 @@ ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
91
91
${TESTSRC}${FILESEP} provider${FILESEP} HashProvider.java
92
92
93
93
# run the test
94
- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
94
+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
95
95
-classpath " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" \
96
96
-Djava.awt.headless=true \
97
97
ClassLoaderDeadlock
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
#
4
- # Copyright (c) 2003, 2020 , Oracle and/or its affiliates. All rights reserved.
4
+ # Copyright (c) 2003, 2024 , Oracle and/or its affiliates. All rights reserved.
5
5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6
6
#
7
7
# This code is free software; you can redistribute it and/or modify it
62
62
63
63
JAVA=" ${TESTJAVA}${FILESEP} bin${FILESEP} java"
64
64
65
- ${JAVA} ${TESTVMOPTS} -cp " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" Deadlock
65
+ ${JAVA} ${TESTVMOPTS} ${TESTJAVAOPTS} -cp " ${TESTCLASSES}${PATHSEP}${TESTSRC}${FILESEP} Deadlock.jar" Deadlock
66
66
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2010, 2013 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2010, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
50
50
51
51
${COMPILEJAVA}${FS} bin${FS} javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \
52
52
${TESTSRC}${FS} SlowStream.java
53
- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} -Dtest.src=${TESTSRC} SlowStreamWriter | \
54
- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} SlowStreamReader
53
+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} -Dtest.src=${TESTSRC} SlowStreamWriter | \
54
+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} SlowStreamReader
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2009, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2009, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -94,7 +94,7 @@ EXIT_STATUS=0
94
94
95
95
if [ " ${NATIVE} " = " true" ] ; then
96
96
echo " Testing native provider"
97
- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
97
+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
98
98
-classpath ${TESTCLASSES} \
99
99
-Dsun.security.jgss.native=true \
100
100
${TEST}
@@ -114,7 +114,7 @@ if [ "${NATIVE}" = "true" ] ; then
114
114
fi
115
115
116
116
echo " Testing java provider"
117
- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
117
+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
118
118
-classpath ${TESTCLASSES} \
119
119
-Djava.security.krb5.realm=R \
120
120
-Djava.security.krb5.kdc=127.0.0.1 \
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
122
122
${TESTSRC}${FS} MultipleLogins.java \
123
123
${TESTSRC}${FS} ..${FS} PKCS11Test.java
124
124
125
- TEST_ARGS=" ${TESTVMOPTS} -classpath ${TESTCLASSPATH} \
125
+ TEST_ARGS=" ${TESTVMOPTS} ${TESTJAVAOPTS} -classpath ${TESTCLASSPATH} \
126
126
--add-modules jdk.crypto.cryptoki \
127
127
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED \
128
128
-DCUSTOM_DB_DIR=${TESTCLASSES} \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
#
4
- # Copyright (c) 2001, 2020 , Oracle and/or its affiliates. All rights reserved.
4
+ # Copyright (c) 2001, 2024 , Oracle and/or its affiliates. All rights reserved.
5
5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6
6
#
7
7
# This code is free software; you can redistribute it and/or modify it
@@ -96,7 +96,7 @@ ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${TESTCLA
96
96
${COMPILEJAVA}${FS} bin${FS} javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${TESTCLASSES}${FS} app \
97
97
${TESTSRC}${FS} GetInstance.java
98
98
99
- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} \
99
+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
100
100
-Xbootclasspath/a:" ${TESTCLASSES}${FS} boot" \
101
101
-classpath " ${TESTCLASSES}${FS} app" -Djava.security.manager \
102
102
-Djava.security.policy=GetInstance.policy \
@@ -110,7 +110,7 @@ if [ $status1 -ne 0 ]; then
110
110
echo " Failed on first test"
111
111
fi
112
112
113
- ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} \
113
+ ${TESTJAVA}${FS} bin${FS} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
114
114
-classpath " ${TESTCLASSES}${FS} boot${PS}${TESTCLASSES}${FS} app" \
115
115
-Djava.security.manager \
116
116
-Djava.security.policy=GetInstance.policy \
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2002, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2002, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,7 @@ rm -rf com edu
86
86
# This is the only thing we really care about as far as
87
87
# test status goes.
88
88
#
89
- ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} \
89
+ ${TESTJAVA}${FILESEP} bin${FILESEP} java ${TESTVMOPTS} ${TESTJAVAOPTS} \
90
90
-Dtest.src=${TESTSRC} \
91
91
-classpath " com.jar${PATHSEP} edu.jar" \
92
92
-Djava.security.manager \
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2016, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2016, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
30
30
# jtreg does not like -Dfile.encoding=UTF-16 inside a @run main line,
31
31
# therefore a shell test is written.
32
32
33
- $TESTJAVA /bin/java $TESTVMOPTS -cp $TESTCLASSES \
33
+ $TESTJAVA /bin/java $TESTVMOPTS $TESTJAVAOPTS -cp $TESTCLASSES \
34
34
-Dfile.encoding=UTF-16 \
35
35
PemEncoding $TESTSRC /../HostnameChecker/cert5.crt
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (c) 2010, 2013 , Oracle and/or its affiliates. All rights reserved.
2
+ # Copyright (c) 2010, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
#
5
5
# This code is free software; you can redistribute it and/or modify it
@@ -85,4 +85,4 @@ $KT -delete -alias user
85
85
86
86
EXTRAOPTS=" --add-exports java.base/sun.security.validator=ALL-UNNAMED"
87
87
$JAVAC ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} ${EXTRAOPTS} -d . ${TESTSRC}${FS} CertReplace.java
88
- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace certreplace.jks certreplace.certs
88
+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace certreplace.jks certreplace.certs
Original file line number Diff line number Diff line change @@ -81,5 +81,5 @@ $KT -delete -alias user
81
81
82
82
EXTRAOPTS=" --add-exports java.base/sun.security.validator=ALL-UNNAMED"
83
83
$JAVAC ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} ${EXTRAOPTS} -d . ${TESTSRC}${FS} CertReplace.java
84
- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace samedn.jks samedn1.certs || exit 1
85
- $JAVA ${TESTVMOPTS} ${EXTRAOPTS} CertReplace samedn.jks samedn2.certs || exit 2
84
+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace samedn.jks samedn1.certs || exit 1
85
+ $JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} ${ EXTRAOPTS} CertReplace samedn.jks samedn2.certs || exit 2
You can’t perform that action at this time.
0 commit comments