PatModImg_AppMod_1

[2024-10-03T15:50:47.361Z] Running test PatModImg_AppMod_1 ... [2024-10-03T15:50:47.361Z] =============================================== [2024-10-03T15:50:47.361Z] PatModImg_AppMod_1 Start Time: Thu Oct 3 15:50:46 2024 Epoch Time (ms): 1727970646944 [2024-10-03T15:50:47.361Z] variation: Mode650 [2024-10-03T15:50:47.361Z] JVM_OPTIONS: -XX:-UseCompressedOops [2024-10-03T15:50:47.361Z] { \ [2024-10-03T15:50:47.361Z] echo ""; echo "TEST SETUP:"; \ [2024-10-03T15:50:47.361Z] echo "Nothing to be done for setup."; \ [2024-10-03T15:50:47.361Z] mkdir -p "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1"; \ [2024-10-03T15:50:47.361Z] cd "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1"; \ [2024-10-03T15:50:47.361Z] echo ""; echo "TESTING:"; \ [2024-10-03T15:50:47.361Z] perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF/stf.core/scripts/stf.pl -test-root="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/../../testDependency/system_lib/" -java-args=' -XX:-UseCompressedOops ' -results-root="/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1" -test=PatModImgTest -test-args="variant=AppMod"; \ [2024-10-03T15:50:47.361Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatModImg_AppMod_1""_PASSED"; echo "-----------------------------------"; cd /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/..; rm -f -r "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1"; else echo "-----------------------------------"; echo "PatModImg_AppMod_1""_FAILED"; echo "-----------------------------------"; fi; \ [2024-10-03T15:50:47.361Z] echo ""; echo "TEST TEARDOWN:"; \ [2024-10-03T15:50:47.361Z] echo "Nothing to be done for teardown."; \ [2024-10-03T15:50:47.361Z] } 2>&1 | tee -a "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/TestTargetResult"; [2024-10-03T15:50:47.361Z] [2024-10-03T15:50:47.361Z] TEST SETUP: [2024-10-03T15:50:47.361Z] Nothing to be done for setup. [2024-10-03T15:50:47.361Z] [2024-10-03T15:50:47.361Z] TESTING: [2024-10-03T15:50:47.361Z] STF 15:50:47.213 - ========================= S T F ========================= [2024-10-03T15:50:47.361Z] systemtest-prereqs has been processed, and set to: /home/jenkins/testDependency/system_libRetrieving amount of free space on drive containing /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1 [2024-10-03T15:50:47.361Z] There is 83093 Mb free [2024-10-03T15:50:47.361Z] STF 15:50:47.233 - ================== G E N E R A T I O N ================== [2024-10-03T15:50:47.361Z] STF 15:50:47.236 - Checking JVM: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image [2024-10-03T15:50:47.362Z] STF 15:50:47.237 - Starting process to generate scripts: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -classpath /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/../../testDependency/system_lib//log4j/log4j-api.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/../../testDependency/system_lib//log4j/log4j-core.jar:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/stf_parameters.properties, , /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest" [2024-10-03T15:50:47.362Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:50:47.362Z] GEN [0.018s][warning][cds] 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 [2024-10-03T15:50:52.279Z] GEN 15:50:52.090 - Found test. Project: 'openjdk.test.modularity' class: 'PatModImgTest.class' Dir: '/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2024-10-03T15:50:52.279Z] GEN 15:50:52.109 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModImgTest' [2024-10-03T15:50:52.925Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2024-10-03T15:50:52.925Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/STF/stf.core/bin [2024-10-03T15:50:52.925Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-api.jar [2024-10-03T15:50:52.925Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-core.jar [2024-10-03T15:50:52.925Z] GEN /home/jenkins/testDependency/system_lib/junit/junit.jar [2024-10-03T15:50:52.925Z] GEN 15:50:52.815 - Using Mode NoOptions. Values = '' [2024-10-03T15:50:53.545Z] GEN 15:50:53.268 - [2024-10-03T15:50:53.545Z] GEN 15:50:53.269 - Test command summary: [2024-10-03T15:50:53.545Z] GEN 15:50:53.270 - Step Stage Command Description [2024-10-03T15:50:53.545Z] GEN 15:50:53.272 - -----+--------+-----------------+------------ [2024-10-03T15:50:53.545Z] GEN 15:50:53.273 - 1 execute jar Create com.hello jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.273 - 2 execute jar Create com.hola jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.274 - 3 execute jar Create com.helper jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.275 - 4 execute jar Create com.discreet jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.275 - 5 execute jar Create tests jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.276 - 6 execute jlink Create runtime image for PatchModule test [2024-10-03T15:50:53.545Z] GEN 15:50:53.276 - 7 execute jar Create com.hello jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.277 - 8 execute jar create java.xml.jar [2024-10-03T15:50:53.545Z] GEN 15:50:53.277 - 9 execute Run java Verify if we can patch an Application module using exploded directory [2024-10-03T15:50:53.545Z] GEN 15:50:53.278 - 10 execute Run java Verify if we can patch an Application module using modular jar [2024-10-03T15:50:53.545Z] STF 15:50:53.395 - [2024-10-03T15:50:53.545Z] STF 15:50:53.395 - Script generation completed [2024-10-03T15:50:53.545Z] STF 15:50:53.395 - [2024-10-03T15:50:53.545Z] STF 15:50:53.396 - [2024-10-03T15:50:53.545Z] STF 15:50:53.396 - ======================= S E T U P ======================= [2024-10-03T15:50:53.545Z] STF 15:50:53.397 - Running setup: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/setUp.pl [2024-10-03T15:50:54.176Z] STF 15:50:53.627 - SETUP stage completed [2024-10-03T15:50:54.176Z] STF 15:50:53.635 - [2024-10-03T15:50:54.176Z] STF 15:50:53.635 - ==================== E X E C U T E - ==================== [2024-10-03T15:50:54.176Z] STF 15:50:53.635 - Running execute: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/execute.pl [2024-10-03T15:50:54.176Z] STF 15:50:53.864 - [2024-10-03T15:50:54.176Z] STF 15:50:53.864 - Java version [2024-10-03T15:50:54.176Z] STF 15:50:53.864 - Running: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/java -version [2024-10-03T15:50:54.176Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:50:54.176Z] openjdk version "21.0.5-beta" 2024-10-15 [2024-10-03T15:50:54.176Z] OpenJDK Runtime Environment Temurin-21.0.5+9-202410030920 (build 21.0.5-beta+9-ea) [2024-10-03T15:50:54.176Z] OpenJDK 64-Bit Server VM Temurin-21.0.5+9-202410030920 (build 21.0.5-beta+9-ea, mixed mode, sharing) [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - +------ Step 1 - Create com.hello jar [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | Create modular jar [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | ModuleVersion: null [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | MainClass: null [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | HashModules: null [2024-10-03T15:50:54.176Z] STF 15:50:54.125 - | [2024-10-03T15:50:54.176Z] STF 15:50:54.126 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/1.com.hello.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello . [2024-10-03T15:50:54.176Z] STF 15:50:54.127 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/1.CMJ.stderr [2024-10-03T15:50:54.176Z] STF 15:50:54.127 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/1.CMJ.stdout [2024-10-03T15:50:54.176Z] STF 15:50:54.160 - Monitoring processes: CMJ [2024-10-03T15:50:54.829Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:50:56.163Z] STF 15:50:55.482 - Monitoring Report Summary: [2024-10-03T15:50:56.163Z] STF 15:50:55.482 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - Created modular jar: 1.com.hello.jar [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - +------ Step 2 - Create com.hola jar [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | Create modular jar [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hola [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | ModuleVersion: null [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | MainClass: null [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | HashModules: null [2024-10-03T15:50:56.163Z] STF 15:50:55.483 - | [2024-10-03T15:50:56.163Z] STF 15:50:55.484 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/2.com.hola.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola . [2024-10-03T15:50:56.163Z] STF 15:50:55.484 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/2.CMJ.stderr [2024-10-03T15:50:56.163Z] STF 15:50:55.485 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/2.CMJ.stdout [2024-10-03T15:50:56.163Z] STF 15:50:55.491 - Monitoring processes: CMJ [2024-10-03T15:50:56.163Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:50:57.475Z] STF 15:50:56.846 - Monitoring Report Summary: [2024-10-03T15:50:57.475Z] STF 15:50:56.846 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - Created modular jar: 2.com.hola.jar [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - +------ Step 3 - Create com.helper jar [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | Create modular jar [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.helper [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | ModuleVersion: null [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | MainClass: null [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | HashModules: null [2024-10-03T15:50:57.475Z] STF 15:50:56.847 - | [2024-10-03T15:50:57.475Z] STF 15:50:56.848 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/3.com.helper.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper . [2024-10-03T15:50:57.475Z] STF 15:50:56.848 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/3.CMJ.stderr [2024-10-03T15:50:57.475Z] STF 15:50:56.848 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/3.CMJ.stdout [2024-10-03T15:50:57.475Z] STF 15:50:56.853 - Monitoring processes: CMJ [2024-10-03T15:50:57.476Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:50:58.795Z] STF 15:50:58.251 - Monitoring Report Summary: [2024-10-03T15:50:58.795Z] STF 15:50:58.251 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:50:58.795Z] STF 15:50:58.254 - Created modular jar: 3.com.helper.jar [2024-10-03T15:50:58.795Z] STF 15:50:58.255 - [2024-10-03T15:50:58.795Z] STF 15:50:58.255 - +------ Step 4 - Create com.discreet jar [2024-10-03T15:50:58.795Z] STF 15:50:58.256 - | Create modular jar [2024-10-03T15:50:58.795Z] STF 15:50:58.256 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.discreet [2024-10-03T15:50:58.795Z] STF 15:50:58.256 - | ModuleVersion: null [2024-10-03T15:50:58.795Z] STF 15:50:58.257 - | MainClass: null [2024-10-03T15:50:58.795Z] STF 15:50:58.257 - | HashModules: null [2024-10-03T15:50:58.795Z] STF 15:50:58.257 - | [2024-10-03T15:50:58.795Z] STF 15:50:58.261 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/4.com.discreet.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet . [2024-10-03T15:50:58.795Z] STF 15:50:58.261 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/4.CMJ.stderr [2024-10-03T15:50:58.795Z] STF 15:50:58.261 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/4.CMJ.stdout [2024-10-03T15:50:58.795Z] STF 15:50:58.269 - Monitoring processes: CMJ [2024-10-03T15:50:58.795Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:00.088Z] STF 15:50:59.645 - Monitoring Report Summary: [2024-10-03T15:51:00.088Z] STF 15:50:59.645 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:51:00.088Z] STF 15:50:59.645 - Created modular jar: 4.com.discreet.jar [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - +------ Step 5 - Create tests jar [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | Create modular jar [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | ModuleVersion: null [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | MainClass: null [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | HashModules: null [2024-10-03T15:51:00.088Z] STF 15:50:59.646 - | [2024-10-03T15:51:00.088Z] STF 15:50:59.647 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/5.com.test.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test . [2024-10-03T15:51:00.088Z] STF 15:50:59.647 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/5.CMJ.stderr [2024-10-03T15:51:00.088Z] STF 15:50:59.647 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/5.CMJ.stdout [2024-10-03T15:51:00.088Z] STF 15:50:59.652 - Monitoring processes: CMJ [2024-10-03T15:51:00.088Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:01.474Z] STF 15:51:01.077 - Monitoring Report Summary: [2024-10-03T15:51:01.474Z] STF 15:51:01.077 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:51:01.474Z] STF 15:51:01.080 - Created modular jar: 5.com.test.jar [2024-10-03T15:51:01.474Z] STF 15:51:01.080 - [2024-10-03T15:51:01.474Z] STF 15:51:01.080 - +------ Step 6 - Create runtime image for PatchModule test [2024-10-03T15:51:01.474Z] STF 15:51:01.080 - | Run jlink to create runtime image [2024-10-03T15:51:01.474Z] STF 15:51:01.080 - | ImageName: XpJVM [2024-10-03T15:51:01.474Z] STF 15:51:01.081 - | [2024-10-03T15:51:01.474Z] STF 15:51:01.083 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jlink --module-path /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/jmods:/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules --add-modules com.hello,com.hola,com.test,com.helper,com.discreet --output /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tmp/6.XpJVM [2024-10-03T15:51:01.474Z] STF 15:51:01.083 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/6.JLNK.stderr [2024-10-03T15:51:01.474Z] STF 15:51:01.084 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/6.JLNK.stdout [2024-10-03T15:51:01.474Z] STF 15:51:01.095 - Monitoring processes: JLNK [2024-10-03T15:51:01.474Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:13.862Z] STF 15:51:12.456 - Monitoring Report Summary: [2024-10-03T15:51:13.862Z] STF 15:51:12.457 - o Process JLNK ended with the expected exit code (0) [2024-10-03T15:51:13.862Z] STF 15:51:12.460 - [2024-10-03T15:51:13.862Z] STF 15:51:12.460 - +------ Step 7 - Create com.hello jar [2024-10-03T15:51:13.862Z] STF 15:51:12.460 - | Create modular jar [2024-10-03T15:51:13.862Z] STF 15:51:12.461 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2024-10-03T15:51:13.862Z] STF 15:51:12.461 - | ModuleVersion: null [2024-10-03T15:51:13.862Z] STF 15:51:12.461 - | MainClass: null [2024-10-03T15:51:13.862Z] STF 15:51:12.461 - | HashModules: null [2024-10-03T15:51:13.862Z] STF 15:51:12.462 - | [2024-10-03T15:51:13.862Z] STF 15:51:12.466 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/7.com.hello.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello . [2024-10-03T15:51:13.862Z] STF 15:51:12.466 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/7.CMJ.stderr [2024-10-03T15:51:13.862Z] STF 15:51:12.467 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/7.CMJ.stdout [2024-10-03T15:51:13.862Z] STF 15:51:12.473 - Monitoring processes: CMJ [2024-10-03T15:51:13.862Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:13.862Z] STF 15:51:13.774 - Monitoring Report Summary: [2024-10-03T15:51:13.862Z] STF 15:51:13.774 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - Created modular jar: 7.com.hello.jar [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - +------ Step 8 - create java.xml.jar [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | Create modular jar [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | ModuleVersion: null [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | MainClass: null [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | HashModules: null [2024-10-03T15:51:13.863Z] STF 15:51:13.775 - | [2024-10-03T15:51:13.863Z] STF 15:51:13.776 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/jar --create --file /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/8.java.xml.jar -C /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/java.xml . [2024-10-03T15:51:13.863Z] STF 15:51:13.776 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/8.CMJ.stderr [2024-10-03T15:51:13.863Z] STF 15:51:13.776 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/8.CMJ.stdout [2024-10-03T15:51:13.863Z] STF 15:51:13.783 - Monitoring processes: CMJ [2024-10-03T15:51:13.863Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:15.916Z] STF 15:51:15.096 - Monitoring Report Summary: [2024-10-03T15:51:15.916Z] STF 15:51:15.096 - o Process CMJ ended with the expected exit code (0) [2024-10-03T15:51:15.916Z] STF 15:51:15.097 - Created modular jar: 8.java.xml.jar [2024-10-03T15:51:15.916Z] STF 15:51:15.097 - [2024-10-03T15:51:15.916Z] STF 15:51:15.097 - +------ Step 9 - Verify if we can patch an Application module using exploded directory [2024-10-03T15:51:15.916Z] STF 15:51:15.098 - | Run foreground process [2024-10-03T15:51:15.917Z] STF 15:51:15.098 - | Program: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tmp/6.XpJVM/bin/java [2024-10-03T15:51:15.917Z] STF 15:51:15.098 - | Mnemonic: OT21 [2024-10-03T15:51:15.917Z] STF 15:51:15.098 - | Echo: ECHO_ON [2024-10-03T15:51:15.917Z] STF 15:51:15.098 - | Expectation: CLEAN_RUN within 5m [2024-10-03T15:51:15.917Z] STF 15:51:15.098 - | [2024-10-03T15:51:15.917Z] STF 15:51:15.099 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello -XX:-UseCompressedOops -classpath /home/jenkins/testDependency/system_lib/junit/junit.jar:/home/jenkins/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-10-03T15:51:15.917Z] STF 15:51:15.100 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/9.OT21.stderr [2024-10-03T15:51:15.917Z] STF 15:51:15.100 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/9.OT21.stdout [2024-10-03T15:51:15.917Z] STF 15:51:15.105 - Monitoring processes: OT21 [2024-10-03T15:51:15.917Z] OT21 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:15.917Z] OT21 stderr WARNING: module-info.class ignored in patch: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello [2024-10-03T15:51:16.527Z] OT21 JUnit version 4.12 [2024-10-03T15:51:17.126Z] OT21 . [2024-10-03T15:51:17.126Z] OT21 Time: 0.058 [2024-10-03T15:51:17.126Z] OT21 [2024-10-03T15:51:17.126Z] OT21 OK (1 test) [2024-10-03T15:51:17.126Z] OT21 [2024-10-03T15:51:17.126Z] STF 15:51:16.809 - Monitoring Report Summary: [2024-10-03T15:51:17.126Z] STF 15:51:16.810 - o Process OT21 ended with the expected exit code (0) [2024-10-03T15:51:17.126Z] STF 15:51:16.810 - [2024-10-03T15:51:17.126Z] STF 15:51:16.810 - +------ Step 10 - Verify if we can patch an Application module using modular jar [2024-10-03T15:51:17.126Z] STF 15:51:16.810 - | Run foreground process [2024-10-03T15:51:17.126Z] STF 15:51:16.811 - | Program: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tmp/6.XpJVM/bin/java [2024-10-03T15:51:17.126Z] STF 15:51:16.811 - | Mnemonic: OT22 [2024-10-03T15:51:17.126Z] STF 15:51:16.811 - | Echo: ECHO_ON [2024-10-03T15:51:17.126Z] STF 15:51:16.811 - | Expectation: CLEAN_RUN within 5m [2024-10-03T15:51:17.126Z] STF 15:51:16.811 - | [2024-10-03T15:51:17.127Z] STF 15:51:16.812 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/7.com.hello.jar -XX:-UseCompressedOops -classpath /home/jenkins/testDependency/system_lib/junit/junit.jar:/home/jenkins/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-10-03T15:51:17.127Z] STF 15:51:16.812 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/10.OT22.stderr [2024-10-03T15:51:17.127Z] STF 15:51:16.812 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/results/10.OT22.stdout [2024-10-03T15:51:17.127Z] STF 15:51:16.817 - Monitoring processes: OT22 [2024-10-03T15:51:17.127Z] OT22 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-10-03T15:51:17.733Z] OT22 stderr WARNING: module-info.class ignored in patch: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/modules/7.com.hello.jar [2024-10-03T15:51:18.322Z] OT22 JUnit version 4.12 [2024-10-03T15:51:18.884Z] OT22 . [2024-10-03T15:51:18.884Z] OT22 Time: 0.04 [2024-10-03T15:51:18.884Z] OT22 [2024-10-03T15:51:18.884Z] OT22 OK (1 test) [2024-10-03T15:51:18.884Z] OT22 [2024-10-03T15:51:18.884Z] STF 15:51:18.375 - Monitoring Report Summary: [2024-10-03T15:51:18.884Z] STF 15:51:18.375 - o Process OT22 ended with the expected exit code (0) [2024-10-03T15:51:18.884Z] STF 15:51:18.375 - EXECUTE stage completed [2024-10-03T15:51:18.884Z] STF 15:51:18.605 - [2024-10-03T15:51:18.884Z] STF 15:51:18.606 - ==================== T E A R D O W N ==================== [2024-10-03T15:51:18.884Z] STF 15:51:18.607 - Running teardown: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17279683062644/PatModImg_AppMod_1/20241003-155047-PatModImgTest/tearDown.pl [2024-10-03T15:51:18.884Z] STF 15:51:18.842 - TEARDOWN stage completed [2024-10-03T15:51:18.884Z] STF 15:51:18.850 - [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - ===================== R E S U L T S ===================== [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - Stage results: [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - setUp: pass [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - execute: pass [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - teardown: pass [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - [2024-10-03T15:51:18.884Z] STF 15:51:18.851 - Overall result: PASSED [2024-10-03T15:51:18.884Z] ----------------------------------- [2024-10-03T15:51:18.884Z] PatModImg_AppMod_1_PASSED [2024-10-03T15:51:18.884Z] ----------------------------------- [2024-10-03T15:51:19.449Z] [2024-10-03T15:51:19.449Z] TEST TEARDOWN: [2024-10-03T15:51:19.449Z] Nothing to be done for teardown. [2024-10-03T15:51:19.449Z] PatModImg_AppMod_1 Finish Time: Thu Oct 3 15:51:18 2024 Epoch Time (ms): 1727970678999