PatMod_Adv_2

[2023-04-19T02:11:33.053Z] Running test PatMod_Adv_2 ... [2023-04-19T02:11:33.423Z] =============================================== [2023-04-19T02:11:33.423Z] PatMod_Adv_2 Start Time: Wed Apr 19 02:11:32 2023 Epoch Time (ms): 1681870292905 [2023-04-19T02:11:33.423Z] variation: Mode1000 [2023-04-19T02:11:33.423Z] JVM_OPTIONS: [2023-04-19T02:11:33.423Z] { \ [2023-04-19T02:11:33.423Z] echo ""; echo "TEST SETUP:"; \ [2023-04-19T02:11:33.423Z] echo "Nothing to be done for setup."; \ [2023-04-19T02:11:33.423Z] mkdir -p "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\\TKG\\output_16818662795666\\PatMod_Adv_2"; \ [2023-04-19T02:11:33.423Z] cd "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\\TKG\\output_16818662795666\\PatMod_Adv_2"; \ [2023-04-19T02:11:33.423Z] echo ""; echo "TESTING:"; \ [2023-04-19T02:11:33.423Z] perl J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\\system\\modularity/../\\STF\\stf.core\\scripts\\stf.pl -test-root="J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\\system\\modularity/../\\STF;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\\system\\modularity/../\\aqa-systemtest""" -systemtest-prereqs="J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\\system\\modularity/../\\systemtest_prereqs" -java-args=' ' -results-root="J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\\TKG\\output_16818662795666\\PatMod_Adv_2" -test=PatModTest -test-args="variant=Adv"; \ [2023-04-19T02:11:33.423Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatMod_Adv_2""_PASSED"; echo "-----------------------------------"; cd J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/; rm -f -r "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\\TKG\\output_16818662795666\\PatMod_Adv_2"; else echo "-----------------------------------"; echo "PatMod_Adv_2""_FAILED"; echo "-----------------------------------"; fi; \ [2023-04-19T02:11:33.423Z] echo ""; echo "TEST TEARDOWN:"; \ [2023-04-19T02:11:33.423Z] echo "Nothing to be done for teardown."; \ [2023-04-19T02:11:33.423Z] } 2>&1 | tee -a "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\\TKG\\output_16818662795666\\TestTargetResult"; [2023-04-19T02:11:33.423Z] [2023-04-19T02:11:33.423Z] TEST SETUP: [2023-04-19T02:11:33.423Z] Nothing to be done for setup. [2023-04-19T02:11:33.423Z] [2023-04-19T02:11:33.423Z] TESTING: [2023-04-19T02:11:33.740Z] STF 02:11:33.177 - ========================= S T F ========================= [2023-04-19T02:11:33.740Z] systemtest-prereqs has been processed, and set to: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqsRetrieving amount of free space on drive containing J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2 [2023-04-19T02:11:33.740Z] There is 937320 Mb free [2023-04-19T02:11:33.740Z] STF 02:11:33.193 - ================== G E N E R A T I O N ================== [2023-04-19T02:11:33.740Z] STF 02:11:33.200 - Checking JVM: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image [2023-04-19T02:11:33.740Z] STF 02:11:33.200 - Starting process to generate scripts: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -classpath J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\system\modularity/../\systemtest_prereqs/log4j/log4j-api.jar;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests///..//jvmtest\system\modularity/../\systemtest_prereqs/log4j/log4j-core.jar;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2/20230419-021133-PatModTest/stf_parameters.properties, , J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2/20230419-021133-PatModTest" [2023-04-19T02:11:34.414Z] GEN 02:11:34.012 - Found test. Project: 'openjdk.test.modularity' class: 'PatModTest.class' Dir: 'J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin' [2023-04-19T02:11:34.414Z] GEN 02:11:34.019 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModTest' [2023-04-19T02:11:34.414Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayService [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.helper [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayServiceImpl1 [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.discreet [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hello [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hola [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayServiceImpl2 [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hi [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override [2023-04-19T02:11:34.414Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new [2023-04-19T02:11:34.415Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common\displayServiceImpl3 [2023-04-19T02:11:34.415Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common\displayServiceImpl4 [2023-04-19T02:11:34.415Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common [2023-04-19T02:11:34.415Z] GEN J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\tests [2023-04-19T02:11:34.415Z] GEN J:\\jenkins\\workspace\\Test_openjdk17_hs_sanity.system_x86-32_windows\\jvmtest\\system\\aqa-systemtest\\openjdk.test.modularity\\bin [2023-04-19T02:11:34.415Z] GEN J:\\jenkins\\workspace\\Test_openjdk17_hs_sanity.system_x86-32_windows\\jvmtest\\system\\STF\\stf.core\\bin [2023-04-19T02:11:34.415Z] GEN J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/log4j/log4j-api.jar [2023-04-19T02:11:34.415Z] GEN J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/log4j/log4j-core.jar [2023-04-19T02:11:34.415Z] GEN J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/junit.jar [2023-04-19T02:11:34.415Z] GEN 02:11:34.182 - Using Mode NoOptions. Values = '' [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - Test command summary: [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - Step Stage Command Description [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - -----+--------+-----------------+------------ [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 1 execute jar Create com.hello jar [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 2 execute jar Create com.discreet jar [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 3 execute jar create java.xml.jar [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 4 execute Run java Run application class override test where we specify two exploded module paths in a single --patch-module option [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 5 execute Run java (Negative test) Verify if a module can be specified only once on --patch-module [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 6 execute Run java Combine stderr and stdout files of process OT7 [2023-04-19T02:11:34.729Z] GEN 02:11:34.247 - 7 execute count Check output [2023-04-19T02:11:34.729Z] GEN 02:11:34.248 - 8 execute Run java (Negative test) Verify if --patch-module allows replacing of module-info.class [2023-04-19T02:11:34.729Z] GEN 02:11:34.248 - 9 execute count Check output [2023-04-19T02:11:34.729Z] STF 02:11:34.267 - [2023-04-19T02:11:34.729Z] STF 02:11:34.267 - Script generation completed [2023-04-19T02:11:34.729Z] STF 02:11:34.267 - [2023-04-19T02:11:34.729Z] STF 02:11:34.268 - [2023-04-19T02:11:34.729Z] STF 02:11:34.268 - ======================= S E T U P ======================= [2023-04-19T02:11:34.729Z] STF 02:11:34.268 - Running setup: perl J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2/20230419-021133-PatModTest/setUp.pl [2023-04-19T02:11:34.729Z] STF 02:11:34.409 - SETUP stage completed [2023-04-19T02:11:34.729Z] STF 02:11:34.421 - [2023-04-19T02:11:34.729Z] STF 02:11:34.422 - ==================== E X E C U T E - ==================== [2023-04-19T02:11:34.729Z] STF 02:11:34.422 - Running execute: perl J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2/20230419-021133-PatModTest/execute.pl [2023-04-19T02:11:35.042Z] STF 02:11:34.565 - [2023-04-19T02:11:35.042Z] STF 02:11:34.565 - Java version [2023-04-19T02:11:35.042Z] STF 02:11:34.565 - Running: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java -version [2023-04-19T02:11:35.042Z] openjdk version "17.0.7" 2023-04-18 [2023-04-19T02:11:35.042Z] OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) [2023-04-19T02:11:35.042Z] OpenJDK Client VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, emulated-client) [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - +------ Step 1 - Create com.hello jar [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | Create modular jar [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | ModuleVersion: null [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | MainClass: null [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | HashModules: null [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - | [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/jar --create --file J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/modules/1.com.hello.jar -C J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello . [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/1.CMJ.stderr [2023-04-19T02:11:35.042Z] STF 02:11:34.658 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/1.CMJ.stdout [2023-04-19T02:11:35.042Z] STF 02:11:34.683 - Monitoring processes: CMJ [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - Monitoring Report Summary: [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - o Process CMJ ended with the expected exit code (0) [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - Created modular jar: 1.com.hello.jar [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - +------ Step 2 - Create com.discreet jar [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | Create modular jar [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.discreet [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | ModuleVersion: null [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | MainClass: null [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | HashModules: null [2023-04-19T02:11:35.354Z] STF 02:11:34.965 - | [2023-04-19T02:11:35.354Z] STF 02:11:34.966 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/jar --create --file J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/modules/2.com.discreet.jar -C J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.discreet . [2023-04-19T02:11:35.354Z] STF 02:11:34.966 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/2.CMJ.stderr [2023-04-19T02:11:35.354Z] STF 02:11:34.966 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/2.CMJ.stdout [2023-04-19T02:11:35.354Z] STF 02:11:34.967 - Monitoring processes: CMJ [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - Monitoring Report Summary: [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - o Process CMJ ended with the expected exit code (0) [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - Created modular jar: 2.com.discreet.jar [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - +------ Step 3 - create java.xml.jar [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | Create modular jar [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | ModuleVersion: null [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | MainClass: null [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | HashModules: null [2023-04-19T02:11:35.668Z] STF 02:11:35.252 - | [2023-04-19T02:11:35.668Z] STF 02:11:35.253 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/jar --create --file J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/modules/3.java.xml.jar -C J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\java.xml . [2023-04-19T02:11:35.668Z] STF 02:11:35.253 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/3.CMJ.stderr [2023-04-19T02:11:35.668Z] STF 02:11:35.253 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/3.CMJ.stdout [2023-04-19T02:11:35.668Z] STF 02:11:35.254 - Monitoring processes: CMJ [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - Monitoring Report Summary: [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - o Process CMJ ended with the expected exit code (0) [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - Created modular jar: 3.java.xml.jar [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - +------ Step 4 - Run application class override test where we specify two exploded module paths in a single --patch-module option [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | Run foreground process [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | Program: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | Mnemonic: OT56 [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | Echo: ECHO_ON [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | Expectation: CLEAN_RUN within 1m [2023-04-19T02:11:35.981Z] STF 02:11:35.535 - | [2023-04-19T02:11:35.981Z] STF 02:11:35.536 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java --add-reads com.test=ALL-UNNAMED --module-path J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods;J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\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=J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello;J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new\com.hello -classpath J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/junit.jar;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingMultipleFilePaths [2023-04-19T02:11:35.981Z] STF 02:11:35.536 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/4.OT56.stderr [2023-04-19T02:11:35.981Z] STF 02:11:35.536 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/4.OT56.stdout [2023-04-19T02:11:35.981Z] STF 02:11:35.542 - Monitoring processes: OT56 [2023-04-19T02:11:35.981Z] OT56 stderr WARNING: module-info.class ignored in patch: J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello [2023-04-19T02:11:35.981Z] OT56 stderr WARNING: module-info.class ignored in patch: J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new\com.hello [2023-04-19T02:11:35.981Z] OT56 JUnit version 4.12 [2023-04-19T02:11:36.297Z] OT56 ... [2023-04-19T02:11:36.298Z] OT56 Time: 0.006 [2023-04-19T02:11:36.298Z] OT56 [2023-04-19T02:11:36.298Z] OT56 OK (3 tests) [2023-04-19T02:11:36.298Z] OT56 [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - Monitoring Report Summary: [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - o Process OT56 ended with the expected exit code (0) [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - +------ Step 5 - (Negative test) Verify if a module can be specified only once on --patch-module [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | Run foreground process [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | Program: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | Mnemonic: OT7 [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | Echo: ECHO_ON [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | Expectation: NON_ZERO_EXIT [1] within 1m [2023-04-19T02:11:36.298Z] STF 02:11:35.885 - | [2023-04-19T02:11:36.298Z] STF 02:11:35.886 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java --add-reads com.test=ALL-UNNAMED --module-path J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods;J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\tests --add-modules=com.test --patch-module com.hello=J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new\com.hello --patch-module com.hello=J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello -classpath J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/junit.jar;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2023-04-19T02:11:36.298Z] STF 02:11:35.886 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/5.OT7.stderr [2023-04-19T02:11:36.298Z] STF 02:11:35.886 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/5.OT7.stdout [2023-04-19T02:11:36.298Z] STF 02:11:35.889 - Monitoring processes: OT7 [2023-04-19T02:11:36.298Z] OT7 Error occurred during initialization of boot layer [2023-04-19T02:11:36.298Z] OT7 java.lang.ExceptionInInitializerError [2023-04-19T02:11:36.298Z] OT7 Caused by: java.lang.RuntimeException: com.hello specified more than once to --patch-module [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - Monitoring Report Summary: [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - o Process OT7 ended with the expected exit code (1) [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - +------ Step 6 - Combine stderr and stdout files of process OT7 [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | Run foreground process [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | Program: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | Mnemonic: CO [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | Echo: ECHO_OFF [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | Expectation: NON_ZERO_EXIT [0] within 30s [2023-04-19T02:11:36.298Z] STF 02:11:35.985 - | [2023-04-19T02:11:36.298Z] STF 02:11:35.986 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java -Dfile1=J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/5.OT7.stdout -Dfile2=J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/5.OT7.stderr -Dfinal.file=J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\aqa-tests\TKG\output_16818662795666\PatMod_Adv_2\20230419-021133-PatModTest\results\combinedOT7.txt -classpath J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\STF\stf.core\bin;J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin net.adoptopenjdk.test.modularity.TestUtil [2023-04-19T02:11:36.298Z] STF 02:11:35.986 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/6.CO.stderr [2023-04-19T02:11:36.298Z] STF 02:11:35.986 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/6.CO.stdout [2023-04-19T02:11:36.298Z] STF 02:11:35.989 - Monitoring processes: CO [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - Monitoring Report Summary: [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - o Process CO ended with the expected exit code (0) [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - +------ Step 7 - Check output [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - | Count file matches [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - | TargetFile: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/combinedOT7.txt [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - | ExpectedNumMatches: 1 [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - | SearchStrings: ["java.lang.ExceptionInInitializerError"] [2023-04-19T02:11:36.609Z] STF 02:11:36.164 - | [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - Found 1 instances of ["java.lang.ExceptionInInitializerError"] [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - +------ Step 8 - (Negative test) Verify if --patch-module allows replacing of module-info.class [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | Run foreground process [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | Program: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | Mnemonic: OT8 [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | Echo: ECHO_ON [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | Expectation: NON_ZERO_EXIT [1] within 1m [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - | [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - Running command: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/openjdkbinary/j2sdk-image/bin/java --add-reads com.test=ALL-UNNAMED --module-path J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods;J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\tests --add-modules=com.test --patch-module com.hello=J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new\com.hello -classpath J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/junit.jar;J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/jvmtest/system/systemtest_prereqs/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - Redirecting stderr to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/8.OT8.stderr [2023-04-19T02:11:36.609Z] STF 02:11:36.165 - Redirecting stdout to J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/8.OT8.stdout [2023-04-19T02:11:36.609Z] STF 02:11:36.168 - Monitoring processes: OT8 [2023-04-19T02:11:36.609Z] OT8 stderr WARNING: module-info.class ignored in patch: J:\jenkins\workspace\Test_openjdk17_hs_sanity.system_x86-32_windows\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new\com.hello [2023-04-19T02:11:36.609Z] OT8 JUnit version 4.12 [2023-04-19T02:11:36.923Z] OT8 .E [2023-04-19T02:11:36.923Z] OT8 Time: 0.005 [2023-04-19T02:11:36.923Z] OT8 There was 1 failure: [2023-04-19T02:11:36.923Z] OT8 1) testPatchingOfNewClassInExistingPackage(net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType) [2023-04-19T02:11:36.923Z] 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-19T02:11:36.923Z] OT8 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) [2023-04-19T02:11:36.923Z] OT8 at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) [2023-04-19T02:11:36.923Z] OT8 at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489) [2023-04-19T02:11:36.923Z] OT8 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) [2023-04-19T02:11:36.923Z] OT8 at com.test/net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType.testPatchingOfNewClassInExistingPackage(TestOverrideUsingUnexportedPublicType.java:34) [2023-04-19T02:11:36.923Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2023-04-19T02:11:36.923Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [2023-04-19T02:11:36.923Z] OT8 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2023-04-19T02:11:36.923Z] OT8 at java.base/java.lang.reflect.Method.invoke(Method.java:568) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [2023-04-19T02:11:36.923Z] OT8 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [2023-04-19T02:11:36.923Z] OT8 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:128) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:27) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:115) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77) [2023-04-19T02:11:36.923Z] OT8 at org.junit.runner.JUnitCore.main(JUnitCore.java:36) [2023-04-19T02:11:36.923Z] OT8 [2023-04-19T02:11:36.923Z] OT8 FAILURES!!! [2023-04-19T02:11:36.923Z] OT8 Tests run: 1, Failures: 1 [2023-04-19T02:11:36.923Z] OT8 [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - Monitoring Report Summary: [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - o Process OT8 ended with the expected exit code (1) [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - +------ Step 9 - Check output [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - | Count file matches [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - | TargetFile: J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/TKG/output_16818662795666/PatMod_Adv_2/20230419-021133-PatModTest/results/8.OT8.stdout [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - | ExpectedNumMatches: 1 [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - | SearchStrings: ["java.lang.IllegalAccessException"] [2023-04-19T02:11:36.923Z] STF 02:11:36.491 - | [2023-04-19T02:11:36.923Z] STF 02:11:36.492 - Found 1 instances of ["java.lang.IllegalAccessException"] [2023-04-19T02:11:36.923Z] STF 02:11:36.492 - EXECUTE stage completed [2023-04-19T02:11:36.923Z] STF 02:11:36.512 - [2023-04-19T02:11:36.923Z] STF 02:11:36.512 - ==================== T E A R D O W N ==================== [2023-04-19T02:11:36.923Z] STF 02:11:36.512 - Running teardown: perl J:/jenkins/workspace/Test_openjdk17_hs_sanity.system_x86-32_windows/aqa-tests/\TKG\output_16818662795666\PatMod_Adv_2/20230419-021133-PatModTest/tearDown.pl [2023-04-19T02:11:36.923Z] STF 02:11:36.656 - TEARDOWN stage completed [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - ===================== R E S U L T S ===================== [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - Stage results: [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - setUp: pass [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - execute: pass [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - teardown: pass [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - [2023-04-19T02:11:36.923Z] STF 02:11:36.671 - Overall result: PASSED [2023-04-19T02:11:36.923Z] ----------------------------------- [2023-04-19T02:11:36.923Z] PatMod_Adv_2_PASSED [2023-04-19T02:11:36.923Z] ----------------------------------- [2023-04-19T02:11:36.923Z] [2023-04-19T02:11:36.923Z] TEST TEARDOWN: [2023-04-19T02:11:36.923Z] Nothing to be done for teardown. [2023-04-19T02:11:37.234Z] PatMod_Adv_2 Finish Time: Wed Apr 19 02:11:36 2023 Epoch Time (ms): 1681870296759