PatMod_Adv_0

[2023-04-18T23:31:24.900Z] Running test PatMod_Adv_0 ... [2023-04-18T23:31:24.900Z] =============================================== [2023-04-18T23:31:24.900Z] PatMod_Adv_0 Start Time: Wed Apr 19 00:31:24 2023 Epoch Time (ms): 1681860684787 [2023-04-18T23:31:24.900Z] variation: Mode150 [2023-04-18T23:31:24.900Z] JVM_OPTIONS: -XX:+UseCompressedOops [2023-04-18T23:31:24.900Z] { \ [2023-04-18T23:31:24.900Z] echo ""; echo "TEST SETUP:"; \ [2023-04-18T23:31:24.900Z] echo "Nothing to be done for setup."; \ [2023-04-18T23:31:24.900Z] mkdir -p "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0"; \ [2023-04-18T23:31:24.900Z] cd "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0"; \ [2023-04-18T23:31:24.900Z] echo ""; echo "TESTING:"; \ [2023-04-18T23:31:24.900Z] perl /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF/stf.core/scripts/stf.pl -test-root="/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//systemtest_prereqs" -java-args=' -XX:+UseCompressedOops ' -results-root="/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0" -test=PatModTest -test-args="variant=Adv"; \ [2023-04-18T23:31:24.900Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatMod_Adv_0""_PASSED"; echo "-----------------------------------"; cd /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/..; rm -f -r "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0"; else echo "-----------------------------------"; echo "PatMod_Adv_0""_FAILED"; echo "-----------------------------------"; fi; \ [2023-04-18T23:31:24.900Z] echo ""; echo "TEST TEARDOWN:"; \ [2023-04-18T23:31:24.900Z] echo "Nothing to be done for teardown."; \ [2023-04-18T23:31:24.900Z] } 2>&1 | tee -a "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/TestTargetResult"; [2023-04-18T23:31:24.900Z] [2023-04-18T23:31:24.900Z] TEST SETUP: [2023-04-18T23:31:24.900Z] Nothing to be done for setup. [2023-04-18T23:31:24.900Z] [2023-04-18T23:31:24.900Z] TESTING: [2023-04-18T23:31:25.252Z] STF 00:31:24.883 - ========================= S T F ========================= [2023-04-18T23:31:25.252Z] systemtest-prereqs has been processed, and set to: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqsRetrieving amount of free space on drive containing /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0 [2023-04-18T23:31:25.252Z] There is 48675 Mb free [2023-04-18T23:31:25.252Z] STF 00:31:24.892 - ================== G E N E R A T I O N ================== [2023-04-18T23:31:25.252Z] STF 00:31:24.893 - Checking JVM: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/../ [2023-04-18T23:31:25.252Z] STF 00:31:24.893 - Starting process to generate scripts: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -classpath /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//systemtest_prereqs/log4j/log4j-api.jar:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../../jvmtest/system/modularity/..//systemtest_prereqs/log4j/log4j-core.jar:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/stf_parameters.properties, , /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest" [2023-04-18T23:31:25.252Z] GEN stderr OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "net.adoptopenjdk.stf.runner.StfClassLoader"). To use archived non-system classes, this property must not be set [2023-04-18T23:31:26.078Z] GEN 00:31:25.607 - Found test. Project: 'openjdk.test.modularity' class: 'PatModTest.class' Dir: '/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2023-04-18T23:31:26.079Z] GEN 00:31:25.620 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModTest' [2023-04-18T23:31:26.079Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/STF/stf.core/bin [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/log4j/log4j-api.jar [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/log4j/log4j-core.jar [2023-04-18T23:31:26.079Z] GEN /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/junit.jar [2023-04-18T23:31:26.079Z] GEN 00:31:25.754 - Using Mode NoOptions. Values = '' [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - Test command summary: [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - Step Stage Command Description [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - -----+--------+-----------------+------------ [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - 1 execute jar Create com.hello jar [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - 2 execute jar Create com.discreet jar [2023-04-18T23:31:26.079Z] GEN 00:31:25.817 - 3 execute jar create java.xml.jar [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 4 execute Run java Run application class override test where we specify two exploded module paths in a single --patch-module option [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 5 execute Run java (Negative test) Verify if a module can be specified only once on --patch-module [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 6 execute Run java Combine stderr and stdout files of process OT7 [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 7 execute count Check output [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 8 execute Run java (Negative test) Verify if --patch-module allows replacing of module-info.class [2023-04-18T23:31:26.079Z] GEN 00:31:25.818 - 9 execute count Check output [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - Script generation completed [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - ======================= S E T U P ======================= [2023-04-18T23:31:26.079Z] STF 00:31:25.845 - Running setup: perl /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/setUp.pl [2023-04-18T23:31:26.079Z] STF 00:31:25.915 - SETUP stage completed [2023-04-18T23:31:26.079Z] STF 00:31:25.925 - [2023-04-18T23:31:26.079Z] STF 00:31:25.925 - ==================== E X E C U T E - ==================== [2023-04-18T23:31:26.079Z] STF 00:31:25.925 - Running execute: perl /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/execute.pl [2023-04-18T23:31:26.079Z] STF 00:31:26.006 - [2023-04-18T23:31:26.079Z] STF 00:31:26.006 - Java version [2023-04-18T23:31:26.079Z] STF 00:31:26.006 - Running: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java -version [2023-04-18T23:31:26.433Z] openjdk version "17.0.7" 2023-04-18 [2023-04-18T23:31:26.433Z] OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) [2023-04-18T23:31:26.433Z] OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing) [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - +------ Step 1 - Create com.hello jar [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | Create modular jar [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | ModuleVersion: null [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | MainClass: null [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | HashModules: null [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - | [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/modules/1.com.hello.jar -C /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello . [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/1.CMJ.stderr [2023-04-18T23:31:26.433Z] STF 00:31:26.064 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/1.CMJ.stdout [2023-04-18T23:31:26.433Z] STF 00:31:26.074 - Monitoring processes: CMJ [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - Monitoring Report Summary: [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - o Process CMJ ended with the expected exit code (0) [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - Created modular jar: 1.com.hello.jar [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - +------ Step 2 - Create com.discreet jar [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | Create modular jar [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.discreet [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | ModuleVersion: null [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | MainClass: null [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | HashModules: null [2023-04-18T23:31:26.433Z] STF 00:31:26.280 - | [2023-04-18T23:31:26.433Z] STF 00:31:26.281 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/modules/2.com.discreet.jar -C /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.discreet . [2023-04-18T23:31:26.433Z] STF 00:31:26.281 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/2.CMJ.stderr [2023-04-18T23:31:26.433Z] STF 00:31:26.281 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/2.CMJ.stdout [2023-04-18T23:31:26.433Z] STF 00:31:26.282 - Monitoring processes: CMJ [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - Monitoring Report Summary: [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - o Process CMJ ended with the expected exit code (0) [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - Created modular jar: 2.com.discreet.jar [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - +------ Step 3 - create java.xml.jar [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - | Create modular jar [2023-04-18T23:31:26.787Z] STF 00:31:26.476 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2023-04-18T23:31:26.788Z] STF 00:31:26.476 - | ModuleVersion: null [2023-04-18T23:31:26.788Z] STF 00:31:26.476 - | MainClass: null [2023-04-18T23:31:26.788Z] STF 00:31:26.476 - | HashModules: null [2023-04-18T23:31:26.788Z] STF 00:31:26.476 - | [2023-04-18T23:31:26.788Z] STF 00:31:26.477 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/modules/3.java.xml.jar -C /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/java.xml . [2023-04-18T23:31:26.788Z] STF 00:31:26.477 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/3.CMJ.stderr [2023-04-18T23:31:26.788Z] STF 00:31:26.477 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/3.CMJ.stdout [2023-04-18T23:31:26.788Z] STF 00:31:26.478 - Monitoring processes: CMJ [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - Monitoring Report Summary: [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - o Process CMJ ended with the expected exit code (0) [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - Created modular jar: 3.java.xml.jar [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - +------ Step 4 - Run application class override test where we specify two exploded module paths in a single --patch-module option [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - | Run foreground process [2023-04-18T23:31:26.788Z] STF 00:31:26.674 - | Program: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - | Mnemonic: OT56 [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - | Echo: ECHO_ON [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - | Expectation: CLEAN_RUN within 1m [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - | [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --add-exports com.hello/adoptopenjdk.test.modularity.newpkg=com.test --patch-module com.hello=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello -XX:+UseCompressedOops -classpath /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/junit.jar:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingMultipleFilePaths [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/4.OT56.stderr [2023-04-18T23:31:26.788Z] STF 00:31:26.675 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/4.OT56.stdout [2023-04-18T23:31:26.788Z] STF 00:31:26.677 - Monitoring processes: OT56 [2023-04-18T23:31:27.139Z] OT56 stderr WARNING: module-info.class ignored in patch: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello [2023-04-18T23:31:27.139Z] OT56 stderr WARNING: module-info.class ignored in patch: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello [2023-04-18T23:31:27.139Z] OT56 JUnit version 4.12 [2023-04-18T23:31:27.139Z] OT56 ... [2023-04-18T23:31:27.139Z] OT56 Time: 0.007 [2023-04-18T23:31:27.139Z] OT56 [2023-04-18T23:31:27.139Z] OT56 OK (3 tests) [2023-04-18T23:31:27.139Z] OT56 [2023-04-18T23:31:27.139Z] STF 00:31:27.011 - Monitoring Report Summary: [2023-04-18T23:31:27.139Z] STF 00:31:27.011 - o Process OT56 ended with the expected exit code (0) [2023-04-18T23:31:27.139Z] STF 00:31:27.011 - [2023-04-18T23:31:27.139Z] STF 00:31:27.011 - +------ Step 5 - (Negative test) Verify if a module can be specified only once on --patch-module [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | Run foreground process [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | Program: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | Mnemonic: OT7 [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | Echo: ECHO_ON [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | Expectation: NON_ZERO_EXIT [1] within 1m [2023-04-18T23:31:27.140Z] STF 00:31:27.011 - | [2023-04-18T23:31:27.140Z] STF 00:31:27.012 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --patch-module com.hello=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello --patch-module com.hello=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello -XX:+UseCompressedOops -classpath /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/junit.jar:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2023-04-18T23:31:27.140Z] STF 00:31:27.012 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/5.OT7.stderr [2023-04-18T23:31:27.140Z] STF 00:31:27.012 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/5.OT7.stdout [2023-04-18T23:31:27.140Z] STF 00:31:27.013 - Monitoring processes: OT7 [2023-04-18T23:31:27.140Z] OT7 Error occurred during initialization of boot layer [2023-04-18T23:31:27.140Z] OT7 java.lang.ExceptionInInitializerError [2023-04-18T23:31:27.140Z] OT7 Caused by: java.lang.RuntimeException: com.hello specified more than once to --patch-module [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - Monitoring Report Summary: [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - o Process OT7 ended with the expected exit code (1) [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - +------ Step 6 - Combine stderr and stdout files of process OT7 [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | Run foreground process [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | Program: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | Mnemonic: CO [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | Echo: ECHO_OFF [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | Expectation: NON_ZERO_EXIT [0] within 30s [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - | [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java -Dfile1=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/5.OT7.stdout -Dfile2=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/5.OT7.stderr -Dfinal.file=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/combinedOT7.txt -XX:+UseCompressedOops -classpath /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/STF/stf.core/bin:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin net.adoptopenjdk.test.modularity.TestUtil [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/6.CO.stderr [2023-04-18T23:31:27.140Z] STF 00:31:27.111 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/6.CO.stdout [2023-04-18T23:31:27.140Z] STF 00:31:27.113 - Monitoring processes: CO [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - Monitoring Report Summary: [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - o Process CO ended with the expected exit code (0) [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - +------ Step 7 - Check output [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Count file matches [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | TargetFile: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/combinedOT7.txt [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | ExpectedNumMatches: 1 [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | SearchStrings: ["java.lang.ExceptionInInitializerError"] [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - Found 1 instances of ["java.lang.ExceptionInInitializerError"] [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - +------ Step 8 - (Negative test) Verify if --patch-module allows replacing of module-info.class [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Run foreground process [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Program: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Mnemonic: OT8 [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Echo: ECHO_ON [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | Expectation: NON_ZERO_EXIT [1] within 1m [2023-04-18T23:31:27.493Z] STF 00:31:27.225 - | [2023-04-18T23:31:27.494Z] STF 00:31:27.226 - Running command: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/openjdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --patch-module com.hello=/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello -XX:+UseCompressedOops -classpath /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/junit.jar:/Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType [2023-04-18T23:31:27.494Z] STF 00:31:27.226 - Redirecting stderr to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/8.OT8.stderr [2023-04-18T23:31:27.494Z] STF 00:31:27.226 - Redirecting stdout to /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/8.OT8.stdout [2023-04-18T23:31:27.494Z] STF 00:31:27.227 - Monitoring processes: OT8 [2023-04-18T23:31:27.494Z] OT8 stderr WARNING: module-info.class ignored in patch: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello [2023-04-18T23:31:27.494Z] OT8 JUnit version 4.12 [2023-04-18T23:31:27.849Z] OT8 .E [2023-04-18T23:31:27.849Z] OT8 Time: 0.005 [2023-04-18T23:31:27.849Z] OT8 There was 1 failure: [2023-04-18T23:31:27.849Z] OT8 1) testPatchingOfNewClassInExistingPackage(net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType) [2023-04-18T23:31:27.849Z] OT8 java.lang.IllegalAccessException: class net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType (in module com.test) cannot access class adoptopenjdk.test.modularity.newpkg.NewClass2 (in module com.hello) because module com.hello does not export adoptopenjdk.test.modularity.newpkg to module com.test [2023-04-18T23:31:27.849Z] OT8 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) [2023-04-18T23:31:27.849Z] OT8 at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) [2023-04-18T23:31:27.849Z] OT8 at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489) [2023-04-18T23:31:27.849Z] OT8 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) [2023-04-18T23:31:27.849Z] OT8 at com.test/net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType.testPatchingOfNewClassInExistingPackage(TestOverrideUsingUnexportedPublicType.java:34) [2023-04-18T23:31:27.849Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2023-04-18T23:31:27.849Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [2023-04-18T23:31:27.849Z] OT8 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2023-04-18T23:31:27.849Z] OT8 at java.base/java.lang.reflect.Method.invoke(Method.java:568) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [2023-04-18T23:31:27.849Z] OT8 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [2023-04-18T23:31:27.849Z] OT8 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2023-04-18T23:31:27.849Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:128) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:27) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:115) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77) [2023-04-18T23:31:27.850Z] OT8 at org.junit.runner.JUnitCore.main(JUnitCore.java:36) [2023-04-18T23:31:27.850Z] OT8 [2023-04-18T23:31:27.850Z] OT8 FAILURES!!! [2023-04-18T23:31:27.850Z] OT8 Tests run: 1, Failures: 1 [2023-04-18T23:31:27.850Z] OT8 [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - Monitoring Report Summary: [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - o Process OT8 ended with the expected exit code (1) [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - +------ Step 9 - Check output [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - | Count file matches [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - | TargetFile: /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/results/8.OT8.stdout [2023-04-18T23:31:27.850Z] STF 00:31:27.561 - | ExpectedNumMatches: 1 [2023-04-18T23:31:27.850Z] STF 00:31:27.562 - | SearchStrings: ["java.lang.IllegalAccessException"] [2023-04-18T23:31:27.850Z] STF 00:31:27.562 - | [2023-04-18T23:31:27.850Z] STF 00:31:27.562 - Found 1 instances of ["java.lang.IllegalAccessException"] [2023-04-18T23:31:27.850Z] STF 00:31:27.562 - EXECUTE stage completed [2023-04-18T23:31:27.850Z] STF 00:31:27.578 - [2023-04-18T23:31:27.850Z] STF 00:31:27.578 - ==================== T E A R D O W N ==================== [2023-04-18T23:31:27.850Z] STF 00:31:27.578 - Running teardown: perl /Users/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac/aqa-tests/TKG/../TKG/output_16818581575339/PatMod_Adv_0/20230419-003124-PatModTest/tearDown.pl [2023-04-18T23:31:27.850Z] STF 00:31:27.651 - TEARDOWN stage completed [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - ===================== R E S U L T S ===================== [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - Stage results: [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - setUp: pass [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - execute: pass [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - teardown: pass [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - [2023-04-18T23:31:27.850Z] STF 00:31:27.656 - Overall result: PASSED [2023-04-18T23:31:27.850Z] ----------------------------------- [2023-04-18T23:31:27.850Z] PatMod_Adv_0_PASSED [2023-04-18T23:31:27.850Z] ----------------------------------- [2023-04-18T23:31:27.850Z] [2023-04-18T23:31:27.850Z] TEST TEARDOWN: [2023-04-18T23:31:27.850Z] Nothing to be done for teardown. [2023-04-18T23:31:27.850Z] PatMod_Adv_0 Finish Time: Wed Apr 19 00:31:27 2023 Epoch Time (ms): 1681860687686