PatModImg_AppMod_1

[2024-11-27T14:07:15.154Z] Running test PatModImg_AppMod_1 ... [2024-11-27T14:07:15.154Z] =============================================== [2024-11-27T14:07:15.154Z] PatModImg_AppMod_1 Start Time: Wed Nov 27 14:07:14 2024 Epoch Time (ms): 1732716434936 [2024-11-27T14:07:15.154Z] variation: Mode650 [2024-11-27T14:07:15.154Z] JVM_OPTIONS: -XX:-UseCompressedOops [2024-11-27T14:07:15.154Z] { \ [2024-11-27T14:07:15.154Z] echo ""; echo "TEST SETUP:"; \ [2024-11-27T14:07:15.154Z] echo "Nothing to be done for setup."; \ [2024-11-27T14:07:15.154Z] mkdir -p "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/PatModImg_AppMod_1"; \ [2024-11-27T14:07:15.154Z] cd "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/PatModImg_AppMod_1"; \ [2024-11-27T14:07:15.154Z] echo ""; echo "TESTING:"; \ [2024-11-27T14:07:15.155Z] 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_17327137936375/PatModImg_AppMod_1" -test=PatModImgTest -test-args="variant=AppMod"; \ [2024-11-27T14:07:15.155Z] 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_17327137936375/PatModImg_AppMod_1"; else echo "-----------------------------------"; echo "PatModImg_AppMod_1""_FAILED"; echo "-----------------------------------"; fi; \ [2024-11-27T14:07:15.155Z] echo ""; echo "TEST TEARDOWN:"; \ [2024-11-27T14:07:15.155Z] echo "Nothing to be done for teardown."; \ [2024-11-27T14:07:15.155Z] } 2>&1 | tee -a "/home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/TestTargetResult"; [2024-11-27T14:07:15.155Z] [2024-11-27T14:07:15.155Z] TEST SETUP: [2024-11-27T14:07:15.155Z] Nothing to be done for setup. [2024-11-27T14:07:15.155Z] [2024-11-27T14:07:15.155Z] TESTING: [2024-11-27T14:07:15.484Z] STF 14:07:15.217 - ========================= S T F ========================= [2024-11-27T14:07:15.484Z] 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_17327137936375/PatModImg_AppMod_1 [2024-11-27T14:07:15.484Z] There is 73209 Mb free [2024-11-27T14:07:15.484Z] STF 14:07:15.237 - ================== G E N E R A T I O N ================== [2024-11-27T14:07:15.484Z] STF 14:07:15.240 - Checking JVM: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image [2024-11-27T14:07:15.484Z] STF 14:07:15.240 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest" [2024-11-27T14:07:15.484Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:15.484Z] GEN [0.020s][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-11-27T14:07:20.319Z] GEN 14:07:20.283 - 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-11-27T14:07:20.646Z] GEN 14:07:20.305 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModImgTest' [2024-11-27T14:07:20.985Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2024-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2024-11-27T14:07:20.985Z] 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-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2024-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2024-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2024-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2024-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2024-11-27T14:07:20.985Z] GEN /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jvmtest/system/STF/stf.core/bin [2024-11-27T14:07:20.985Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-api.jar [2024-11-27T14:07:20.985Z] GEN /home/jenkins/testDependency/system_lib/log4j/log4j-core.jar [2024-11-27T14:07:20.985Z] GEN /home/jenkins/testDependency/system_lib/junit/junit.jar [2024-11-27T14:07:21.312Z] GEN 14:07:21.064 - Using Mode NoOptions. Values = '' [2024-11-27T14:07:21.660Z] GEN 14:07:21.467 - [2024-11-27T14:07:21.660Z] GEN 14:07:21.468 - Test command summary: [2024-11-27T14:07:21.660Z] GEN 14:07:21.471 - Step Stage Command Description [2024-11-27T14:07:21.660Z] GEN 14:07:21.472 - -----+--------+-----------------+------------ [2024-11-27T14:07:21.660Z] GEN 14:07:21.474 - 1 execute jar Create com.hello jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.474 - 2 execute jar Create com.hola jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.475 - 3 execute jar Create com.helper jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.476 - 4 execute jar Create com.discreet jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.477 - 5 execute jar Create tests jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.477 - 6 execute jlink Create runtime image for PatchModule test [2024-11-27T14:07:21.660Z] GEN 14:07:21.479 - 7 execute jar Create com.hello jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.479 - 8 execute jar create java.xml.jar [2024-11-27T14:07:21.660Z] GEN 14:07:21.480 - 9 execute Run java Verify if we can patch an Application module using exploded directory [2024-11-27T14:07:21.660Z] GEN 14:07:21.481 - 10 execute Run java Verify if we can patch an Application module using modular jar [2024-11-27T14:07:21.660Z] STF 14:07:21.615 - [2024-11-27T14:07:21.660Z] STF 14:07:21.615 - Script generation completed [2024-11-27T14:07:21.660Z] STF 14:07:21.615 - [2024-11-27T14:07:21.660Z] STF 14:07:21.618 - [2024-11-27T14:07:21.660Z] STF 14:07:21.618 - ======================= S E T U P ======================= [2024-11-27T14:07:21.660Z] STF 14:07:21.618 - Running setup: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/setUp.pl [2024-11-27T14:07:21.991Z] STF 14:07:21.848 - SETUP stage completed [2024-11-27T14:07:21.991Z] STF 14:07:21.862 - [2024-11-27T14:07:21.991Z] STF 14:07:21.862 - ==================== E X E C U T E - ==================== [2024-11-27T14:07:21.991Z] STF 14:07:21.863 - Running execute: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/execute.pl [2024-11-27T14:07:22.316Z] STF 14:07:22.123 - [2024-11-27T14:07:22.317Z] STF 14:07:22.123 - Java version [2024-11-27T14:07:22.317Z] STF 14:07:22.123 - Running: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/jdkbinary/j2sdk-image/bin/java -version [2024-11-27T14:07:22.317Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:22.645Z] openjdk version "21.0.6-beta" 2025-01-21 [2024-11-27T14:07:22.645Z] OpenJDK Runtime Environment Temurin-21.0.6+5-202411271056 (build 21.0.6-beta+5-202411271056) [2024-11-27T14:07:22.645Z] OpenJDK 64-Bit Server VM Temurin-21.0.6+5-202411271056 (build 21.0.6-beta+5-202411271056, mixed mode, sharing) [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - +------ Step 1 - Create com.hello jar [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | Create modular jar [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | ModuleVersion: null [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | MainClass: null [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | HashModules: null [2024-11-27T14:07:22.645Z] STF 14:07:22.380 - | [2024-11-27T14:07:22.645Z] STF 14:07:22.381 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:22.645Z] STF 14:07:22.381 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/1.CMJ.stderr [2024-11-27T14:07:22.645Z] STF 14:07:22.381 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/1.CMJ.stdout [2024-11-27T14:07:22.645Z] STF 14:07:22.424 - Monitoring processes: CMJ [2024-11-27T14:07:22.645Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:24.302Z] STF 14:07:23.766 - Monitoring Report Summary: [2024-11-27T14:07:24.302Z] STF 14:07:23.766 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:24.302Z] STF 14:07:23.767 - Created modular jar: 1.com.hello.jar [2024-11-27T14:07:24.302Z] STF 14:07:23.767 - [2024-11-27T14:07:24.302Z] STF 14:07:23.767 - +------ Step 2 - Create com.hola jar [2024-11-27T14:07:24.302Z] STF 14:07:23.767 - | Create modular jar [2024-11-27T14:07:24.302Z] STF 14:07:23.768 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hola [2024-11-27T14:07:24.302Z] STF 14:07:23.768 - | ModuleVersion: null [2024-11-27T14:07:24.302Z] STF 14:07:23.768 - | MainClass: null [2024-11-27T14:07:24.302Z] STF 14:07:23.768 - | HashModules: null [2024-11-27T14:07:24.302Z] STF 14:07:23.768 - | [2024-11-27T14:07:24.302Z] STF 14:07:23.769 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:24.302Z] STF 14:07:23.769 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/2.CMJ.stderr [2024-11-27T14:07:24.302Z] STF 14:07:23.769 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/2.CMJ.stdout [2024-11-27T14:07:24.302Z] STF 14:07:23.776 - Monitoring processes: CMJ [2024-11-27T14:07:24.302Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:25.446Z] STF 14:07:25.123 - Monitoring Report Summary: [2024-11-27T14:07:25.446Z] STF 14:07:25.123 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:25.446Z] STF 14:07:25.126 - Created modular jar: 2.com.hola.jar [2024-11-27T14:07:25.446Z] STF 14:07:25.126 - [2024-11-27T14:07:25.446Z] STF 14:07:25.126 - +------ Step 3 - Create com.helper jar [2024-11-27T14:07:25.446Z] STF 14:07:25.127 - | Create modular jar [2024-11-27T14:07:25.446Z] STF 14:07:25.127 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.helper [2024-11-27T14:07:25.446Z] STF 14:07:25.127 - | ModuleVersion: null [2024-11-27T14:07:25.446Z] STF 14:07:25.127 - | MainClass: null [2024-11-27T14:07:25.446Z] STF 14:07:25.127 - | HashModules: null [2024-11-27T14:07:25.446Z] STF 14:07:25.128 - | [2024-11-27T14:07:25.446Z] STF 14:07:25.130 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:25.446Z] STF 14:07:25.131 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/3.CMJ.stderr [2024-11-27T14:07:25.447Z] STF 14:07:25.131 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/3.CMJ.stdout [2024-11-27T14:07:25.447Z] STF 14:07:25.144 - Monitoring processes: CMJ [2024-11-27T14:07:25.447Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:26.598Z] STF 14:07:26.461 - Monitoring Report Summary: [2024-11-27T14:07:26.598Z] STF 14:07:26.461 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:26.598Z] STF 14:07:26.462 - Created modular jar: 3.com.helper.jar [2024-11-27T14:07:26.598Z] STF 14:07:26.462 - [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - +------ Step 4 - Create com.discreet jar [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - | Create modular jar [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.discreet [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - | ModuleVersion: null [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - | MainClass: null [2024-11-27T14:07:26.598Z] STF 14:07:26.463 - | HashModules: null [2024-11-27T14:07:26.600Z] STF 14:07:26.463 - | [2024-11-27T14:07:26.600Z] STF 14:07:26.464 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:26.600Z] STF 14:07:26.464 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/4.CMJ.stderr [2024-11-27T14:07:26.600Z] STF 14:07:26.464 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/4.CMJ.stdout [2024-11-27T14:07:26.600Z] STF 14:07:26.470 - Monitoring processes: CMJ [2024-11-27T14:07:26.600Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:28.274Z] STF 14:07:27.781 - Monitoring Report Summary: [2024-11-27T14:07:28.274Z] STF 14:07:27.782 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:28.274Z] STF 14:07:27.782 - Created modular jar: 4.com.discreet.jar [2024-11-27T14:07:28.274Z] STF 14:07:27.782 - [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - +------ Step 5 - Create tests jar [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | Create modular jar [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | ModuleVersion: null [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | MainClass: null [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | HashModules: null [2024-11-27T14:07:28.274Z] STF 14:07:27.783 - | [2024-11-27T14:07:28.274Z] STF 14:07:27.784 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:28.274Z] STF 14:07:27.784 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/5.CMJ.stderr [2024-11-27T14:07:28.274Z] STF 14:07:27.784 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/5.CMJ.stdout [2024-11-27T14:07:28.274Z] STF 14:07:27.789 - Monitoring processes: CMJ [2024-11-27T14:07:28.274Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:29.423Z] STF 14:07:29.143 - Monitoring Report Summary: [2024-11-27T14:07:29.423Z] STF 14:07:29.143 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - Created modular jar: 5.com.test.jar [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - +------ Step 6 - Create runtime image for PatchModule test [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - | Run jlink to create runtime image [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - | ImageName: XpJVM [2024-11-27T14:07:29.423Z] STF 14:07:29.144 - | [2024-11-27T14:07:29.423Z] STF 14:07:29.146 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/tmp/6.XpJVM [2024-11-27T14:07:29.423Z] STF 14:07:29.146 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/6.JLNK.stderr [2024-11-27T14:07:29.423Z] STF 14:07:29.146 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/6.JLNK.stdout [2024-11-27T14:07:29.423Z] STF 14:07:29.155 - Monitoring processes: JLNK [2024-11-27T14:07:29.423Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:42.533Z] STF 14:07:40.313 - Monitoring Report Summary: [2024-11-27T14:07:42.533Z] STF 14:07:40.314 - o Process JLNK ended with the expected exit code (0) [2024-11-27T14:07:42.533Z] STF 14:07:40.316 - [2024-11-27T14:07:42.533Z] STF 14:07:40.316 - +------ Step 7 - Create com.hello jar [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | Create modular jar [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | ModuleVersion: null [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | MainClass: null [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | HashModules: null [2024-11-27T14:07:42.533Z] STF 14:07:40.317 - | [2024-11-27T14:07:42.533Z] STF 14:07:40.319 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:42.534Z] STF 14:07:40.319 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/7.CMJ.stderr [2024-11-27T14:07:42.534Z] STF 14:07:40.319 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/7.CMJ.stdout [2024-11-27T14:07:42.534Z] STF 14:07:40.328 - Monitoring processes: CMJ [2024-11-27T14:07:42.534Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:42.534Z] STF 14:07:41.639 - Monitoring Report Summary: [2024-11-27T14:07:42.534Z] STF 14:07:41.640 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:42.534Z] STF 14:07:41.641 - Created modular jar: 7.com.hello.jar [2024-11-27T14:07:42.534Z] STF 14:07:41.641 - [2024-11-27T14:07:42.534Z] STF 14:07:41.641 - +------ Step 8 - create java.xml.jar [2024-11-27T14:07:42.534Z] STF 14:07:41.641 - | Create modular jar [2024-11-27T14:07:42.534Z] STF 14:07:41.642 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2024-11-27T14:07:42.534Z] STF 14:07:41.642 - | ModuleVersion: null [2024-11-27T14:07:42.534Z] STF 14:07:41.642 - | MainClass: null [2024-11-27T14:07:42.534Z] STF 14:07:41.642 - | HashModules: null [2024-11-27T14:07:42.534Z] STF 14:07:41.642 - | [2024-11-27T14:07:42.534Z] STF 14:07:41.644 - 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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:42.534Z] STF 14:07:41.644 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/8.CMJ.stderr [2024-11-27T14:07:42.534Z] STF 14:07:41.644 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/8.CMJ.stdout [2024-11-27T14:07:42.534Z] STF 14:07:41.654 - Monitoring processes: CMJ [2024-11-27T14:07:42.534Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:43.236Z] STF 14:07:42.941 - Monitoring Report Summary: [2024-11-27T14:07:43.237Z] STF 14:07:42.941 - o Process CMJ ended with the expected exit code (0) [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - Created modular jar: 8.java.xml.jar [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - +------ Step 9 - Verify if we can patch an Application module using exploded directory [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - | Run foreground process [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - | Program: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/tmp/6.XpJVM/bin/java [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - | Mnemonic: OT21 [2024-11-27T14:07:43.237Z] STF 14:07:42.942 - | Echo: ECHO_ON [2024-11-27T14:07:43.237Z] STF 14:07:42.943 - | Expectation: CLEAN_RUN within 5m [2024-11-27T14:07:43.237Z] STF 14:07:42.943 - | [2024-11-27T14:07:43.237Z] STF 14:07:42.943 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:43.237Z] STF 14:07:42.944 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/9.OT21.stderr [2024-11-27T14:07:43.237Z] STF 14:07:42.944 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/9.OT21.stdout [2024-11-27T14:07:43.237Z] STF 14:07:42.949 - Monitoring processes: OT21 [2024-11-27T14:07:43.237Z] OT21 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:43.946Z] 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-11-27T14:07:44.272Z] OT21 JUnit version 4.12 [2024-11-27T14:07:44.604Z] OT21 . [2024-11-27T14:07:44.931Z] OT21 Time: 0.052 [2024-11-27T14:07:44.931Z] OT21 [2024-11-27T14:07:44.931Z] OT21 OK (1 test) [2024-11-27T14:07:44.931Z] OT21 [2024-11-27T14:07:44.931Z] STF 14:07:44.585 - Monitoring Report Summary: [2024-11-27T14:07:44.931Z] STF 14:07:44.586 - o Process OT21 ended with the expected exit code (0) [2024-11-27T14:07:44.931Z] STF 14:07:44.589 - [2024-11-27T14:07:44.931Z] STF 14:07:44.589 - +------ Step 10 - Verify if we can patch an Application module using modular jar [2024-11-27T14:07:44.931Z] STF 14:07:44.589 - | Run foreground process [2024-11-27T14:07:44.931Z] STF 14:07:44.589 - | Program: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/tmp/6.XpJVM/bin/java [2024-11-27T14:07:44.931Z] STF 14:07:44.589 - | Mnemonic: OT22 [2024-11-27T14:07:44.931Z] STF 14:07:44.590 - | Echo: ECHO_ON [2024-11-27T14:07:44.931Z] STF 14:07:44.590 - | Expectation: CLEAN_RUN within 5m [2024-11-27T14:07:44.931Z] STF 14:07:44.590 - | [2024-11-27T14:07:44.931Z] STF 14:07:44.592 - Running command: /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-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_17327137936375/PatModImg_AppMod_1/20241127-140715-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-11-27T14:07:44.931Z] STF 14:07:44.592 - Redirecting stderr to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/10.OT22.stderr [2024-11-27T14:07:44.931Z] STF 14:07:44.593 - Redirecting stdout to /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/results/10.OT22.stdout [2024-11-27T14:07:44.931Z] STF 14:07:44.602 - Monitoring processes: OT22 [2024-11-27T14:07:44.931Z] OT22 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-27T14:07:45.642Z] 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_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/modules/7.com.hello.jar [2024-11-27T14:07:45.968Z] OT22 JUnit version 4.12 [2024-11-27T14:07:46.303Z] OT22 . [2024-11-27T14:07:46.303Z] OT22 Time: 0.041 [2024-11-27T14:07:46.303Z] OT22 [2024-11-27T14:07:46.303Z] OT22 OK (1 test) [2024-11-27T14:07:46.303Z] OT22 [2024-11-27T14:07:46.633Z] STF 14:07:46.128 - Monitoring Report Summary: [2024-11-27T14:07:46.633Z] STF 14:07:46.129 - o Process OT22 ended with the expected exit code (0) [2024-11-27T14:07:46.633Z] STF 14:07:46.130 - EXECUTE stage completed [2024-11-27T14:07:46.633Z] STF 14:07:46.383 - [2024-11-27T14:07:46.633Z] STF 14:07:46.384 - ==================== T E A R D O W N ==================== [2024-11-27T14:07:46.633Z] STF 14:07:46.384 - Running teardown: perl /home/jenkins/workspace/Test_openjdk21_hs_sanity.system_riscv64_linux_testList_2/aqa-tests/TKG/../TKG/output_17327137936375/PatModImg_AppMod_1/20241127-140715-PatModImgTest/tearDown.pl [2024-11-27T14:07:46.968Z] STF 14:07:46.621 - TEARDOWN stage completed [2024-11-27T14:07:46.969Z] STF 14:07:46.629 - [2024-11-27T14:07:46.969Z] STF 14:07:46.629 - ===================== R E S U L T S ===================== [2024-11-27T14:07:46.969Z] STF 14:07:46.629 - Stage results: [2024-11-27T14:07:46.969Z] STF 14:07:46.629 - setUp: pass [2024-11-27T14:07:46.969Z] STF 14:07:46.630 - execute: pass [2024-11-27T14:07:46.969Z] STF 14:07:46.630 - teardown: pass [2024-11-27T14:07:46.969Z] STF 14:07:46.630 - [2024-11-27T14:07:46.969Z] STF 14:07:46.630 - Overall result: PASSED [2024-11-27T14:07:46.969Z] ----------------------------------- [2024-11-27T14:07:46.969Z] PatModImg_AppMod_1_PASSED [2024-11-27T14:07:46.969Z] ----------------------------------- [2024-11-27T14:07:46.969Z] [2024-11-27T14:07:46.969Z] TEST TEARDOWN: [2024-11-27T14:07:46.969Z] Nothing to be done for teardown. [2024-11-27T14:07:46.969Z] PatModImg_AppMod_1 Finish Time: Wed Nov 27 14:07:46 2024 Epoch Time (ms): 1732716466787