PatModImg_AppMod_0

[2025-09-03T22:24:49.892Z] Running test PatModImg_AppMod_0 ... [2025-09-03T22:24:49.892Z] =============================================== [2025-09-03T22:24:49.892Z] PatModImg_AppMod_0 Start Time: Wed Sep 3 18:24:49 2025 Epoch Time (ms): 1756938289770 [2025-09-03T22:24:49.892Z] variation: Mode150 [2025-09-03T22:24:49.892Z] JVM_OPTIONS: -XX:+UseCompressedOops [2025-09-03T22:24:49.892Z] { \ [2025-09-03T22:24:49.892Z] echo ""; echo "TEST SETUP:"; \ [2025-09-03T22:24:49.892Z] echo "Nothing to be done for setup."; \ [2025-09-03T22:24:49.892Z] mkdir -p "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0"; \ [2025-09-03T22:24:49.892Z] cd "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0"; \ [2025-09-03T22:24:49.892Z] echo ""; echo "TESTING:"; \ [2025-09-03T22:24:49.892Z] perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF/stf.core/scripts/stf.pl -test-root="/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/../../externalDependency/system_lib/" -java-args=' -XX:+UseCompressedOops ' -results-root="/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0" -test=PatModImgTest -test-args="variant=AppMod"; \ [2025-09-03T22:24:49.892Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatModImg_AppMod_0""_PASSED"; echo "-----------------------------------"; cd /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/..; rm -f -r "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0"; else echo "-----------------------------------"; echo "PatModImg_AppMod_0""_FAILED"; echo "-----------------------------------"; fi; \ [2025-09-03T22:24:49.892Z] echo ""; echo "TEST TEARDOWN:"; \ [2025-09-03T22:24:49.892Z] echo "Nothing to be done for teardown."; \ [2025-09-03T22:24:49.892Z] } 2>&1 | tee -a "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/TestTargetResult"; [2025-09-03T22:24:49.892Z] [2025-09-03T22:24:49.892Z] TEST SETUP: [2025-09-03T22:24:49.892Z] Nothing to be done for setup. [2025-09-03T22:24:49.892Z] [2025-09-03T22:24:49.892Z] TESTING: [2025-09-03T22:24:49.892Z] STF 18:24:49.805 - ========================= S T F ========================= [2025-09-03T22:24:49.892Z] systemtest-prereqs has been processed, and set to: /Users/admin/workspace/externalDependency/system_libRetrieving amount of free space on drive containing /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0 [2025-09-03T22:24:49.892Z] There is 37979 Mb free [2025-09-03T22:24:49.892Z] STF 18:24:49.809 - ================== G E N E R A T I O N ================== [2025-09-03T22:24:49.892Z] STF 18:24:49.809 - Checking JVM: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/../ [2025-09-03T22:24:49.892Z] STF 18:24:49.809 - Starting process to generate scripts: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -Dload.agent.path=/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/STF/stf.core/scripts/../../stf.load/bin/stf.load.jar -classpath /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/../../externalDependency/system_lib//asm/asm.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/../../externalDependency/system_lib//asm/asm-commons.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/../../externalDependency/system_lib//log4j/log4j-api.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/../../externalDependency/system_lib//log4j/log4j-core.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/stf_parameters.properties, , /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest" [2025-09-03T22:24:49.892Z] GEN [0.003s][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 [2025-09-03T22:24:49.892Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.246Z] GEN 18:24:50.096 - Found test. Project: 'openjdk.test.modularity' class: 'PatModImgTest.class' Dir: '/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2025-09-03T22:24:50.246Z] GEN 18:24:50.102 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModImgTest' [2025-09-03T22:24:50.246Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/STF/stf.core/bin [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/externalDependency/system_lib/log4j/log4j-api.jar [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/externalDependency/system_lib/log4j/log4j-core.jar [2025-09-03T22:24:50.246Z] GEN /Users/admin/workspace/externalDependency/system_lib/junit/junit.jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.158 - Using Mode NoOptions. Values = '' [2025-09-03T22:24:50.246Z] GEN 18:24:50.180 - [2025-09-03T22:24:50.246Z] GEN 18:24:50.180 - Test command summary: [2025-09-03T22:24:50.246Z] GEN 18:24:50.180 - Step Stage Command Description [2025-09-03T22:24:50.246Z] GEN 18:24:50.180 - -----+--------+-----------------+------------ [2025-09-03T22:24:50.246Z] GEN 18:24:50.180 - 1 execute jar Create com.hello jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 2 execute jar Create com.hola jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 3 execute jar Create com.helper jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 4 execute jar Create com.discreet jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 5 execute jar Create tests jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 6 execute jlink Create runtime image for PatchModule test [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 7 execute jar Create com.hello jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 8 execute jar create java.xml.jar [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 9 execute Run java Verify if we can patch an Application module using exploded directory [2025-09-03T22:24:50.246Z] GEN 18:24:50.181 - 10 execute Run java Verify if we can patch an Application module using modular jar [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - Script generation completed [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - ======================= S E T U P ======================= [2025-09-03T22:24:50.599Z] STF 18:24:50.210 - Running setup: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/setUp.pl [2025-09-03T22:24:50.599Z] STF 18:24:50.237 - SETUP stage completed [2025-09-03T22:24:50.599Z] STF 18:24:50.246 - [2025-09-03T22:24:50.599Z] STF 18:24:50.246 - ==================== E X E C U T E - ==================== [2025-09-03T22:24:50.599Z] STF 18:24:50.246 - Running execute: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/execute.pl [2025-09-03T22:24:50.599Z] STF 18:24:50.271 - [2025-09-03T22:24:50.599Z] STF 18:24:50.271 - Java version [2025-09-03T22:24:50.599Z] STF 18:24:50.271 - Running: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/java -version [2025-09-03T22:24:50.599Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - +------ Step 1 - Create com.hello jar [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | Create modular jar [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | ModuleVersion: null [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | MainClass: null [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | HashModules: null [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - | [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/1.com.hello.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello . [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/1.CMJ.stderr [2025-09-03T22:24:50.599Z] STF 18:24:50.295 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/1.CMJ.stdout [2025-09-03T22:24:50.599Z] openjdk version "21.0.9-beta" 2025-10-21 [2025-09-03T22:24:50.599Z] OpenJDK Runtime Environment Temurin-21.0.9+6-202509031904 (build 21.0.9-beta+6-ea) [2025-09-03T22:24:50.599Z] OpenJDK 64-Bit Server VM Temurin-21.0.9+6-202509031904 (build 21.0.9-beta+6-ea, mixed mode, sharing) [2025-09-03T22:24:50.599Z] STF 18:24:50.299 - Monitoring processes: CMJ [2025-09-03T22:24:50.599Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - Monitoring Report Summary: [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - Created modular jar: 1.com.hello.jar [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - +------ Step 2 - Create com.hola jar [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | Create modular jar [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hola [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | ModuleVersion: null [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | MainClass: null [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | HashModules: null [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - | [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/2.com.hola.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola . [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/2.CMJ.stderr [2025-09-03T22:24:50.599Z] STF 18:24:50.415 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/2.CMJ.stdout [2025-09-03T22:24:50.599Z] STF 18:24:50.416 - Monitoring processes: CMJ [2025-09-03T22:24:50.599Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - Monitoring Report Summary: [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - Created modular jar: 2.com.hola.jar [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - +------ Step 3 - Create com.helper jar [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | Create modular jar [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.helper [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | ModuleVersion: null [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | MainClass: null [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | HashModules: null [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - | [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/3.com.helper.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper . [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/3.CMJ.stderr [2025-09-03T22:24:50.599Z] STF 18:24:50.517 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/3.CMJ.stdout [2025-09-03T22:24:50.599Z] STF 18:24:50.518 - Monitoring processes: CMJ [2025-09-03T22:24:50.600Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.952Z] STF 18:24:50.636 - Monitoring Report Summary: [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - Created modular jar: 3.com.helper.jar [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - +------ Step 4 - Create com.discreet jar [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | Create modular jar [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.discreet [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | ModuleVersion: null [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | MainClass: null [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | HashModules: null [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - | [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/4.com.discreet.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet . [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/4.CMJ.stderr [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/4.CMJ.stdout [2025-09-03T22:24:50.952Z] STF 18:24:50.637 - Monitoring processes: CMJ [2025-09-03T22:24:50.952Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - Monitoring Report Summary: [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - Created modular jar: 4.com.discreet.jar [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - +------ Step 5 - Create tests jar [2025-09-03T22:24:50.952Z] STF 18:24:50.732 - | Create modular jar [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - | ModuleVersion: null [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - | MainClass: null [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - | HashModules: null [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - | [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/5.com.test.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test . [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/5.CMJ.stderr [2025-09-03T22:24:50.952Z] STF 18:24:50.733 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/5.CMJ.stdout [2025-09-03T22:24:50.952Z] STF 18:24:50.734 - Monitoring processes: CMJ [2025-09-03T22:24:50.952Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - Monitoring Report Summary: [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - Created modular jar: 5.com.test.jar [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - +------ Step 6 - Create runtime image for PatchModule test [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - | Run jlink to create runtime image [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - | ImageName: XpJVM [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - | [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jlink --module-path /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/jmods:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules --add-modules com.hello,com.hola,com.test,com.helper,com.discreet --output /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tmp/6.XpJVM [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/6.JLNK.stderr [2025-09-03T22:24:50.952Z] STF 18:24:50.852 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/6.JLNK.stdout [2025-09-03T22:24:50.952Z] STF 18:24:50.853 - Monitoring processes: JLNK [2025-09-03T22:24:50.952Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - Monitoring Report Summary: [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - o Process JLNK ended with the expected exit code (0) [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - +------ Step 7 - Create com.hello jar [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | Create modular jar [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | ModuleVersion: null [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | MainClass: null [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | HashModules: null [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - | [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/7.com.hello.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello . [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/7.CMJ.stderr [2025-09-03T22:24:52.194Z] STF 18:24:51.851 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/7.CMJ.stdout [2025-09-03T22:24:52.194Z] STF 18:24:51.853 - Monitoring processes: CMJ [2025-09-03T22:24:52.194Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - Monitoring Report Summary: [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - Created modular jar: 7.com.hello.jar [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - +------ Step 8 - create java.xml.jar [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | Create modular jar [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | ModuleVersion: null [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | MainClass: null [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | HashModules: null [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - | [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/8.java.xml.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/java.xml . [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/8.CMJ.stderr [2025-09-03T22:24:52.194Z] STF 18:24:51.966 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/8.CMJ.stdout [2025-09-03T22:24:52.194Z] STF 18:24:51.967 - Monitoring processes: CMJ [2025-09-03T22:24:52.194Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - Monitoring Report Summary: [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - o Process CMJ ended with the expected exit code (0) [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - Created modular jar: 8.java.xml.jar [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - +------ Step 9 - Verify if we can patch an Application module using exploded directory [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | Run foreground process [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | Program: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tmp/6.XpJVM/bin/java [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | Mnemonic: OT21 [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | Echo: ECHO_ON [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | Expectation: CLEAN_RUN within 5m [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - | [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello -XX:+UseCompressedOops -classpath /Users/admin/workspace/externalDependency/system_lib/junit/junit.jar:/Users/admin/workspace/externalDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/9.OT21.stderr [2025-09-03T22:24:52.194Z] STF 18:24:52.089 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/9.OT21.stdout [2025-09-03T22:24:52.194Z] STF 18:24:52.090 - Monitoring processes: OT21 [2025-09-03T22:24:52.951Z] OT21 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:53.304Z] OT21 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello [2025-09-03T22:24:53.658Z] OT21 JUnit version 4.12 [2025-09-03T22:24:53.658Z] OT21 . [2025-09-03T22:24:53.658Z] OT21 Time: 0.004 [2025-09-03T22:24:53.658Z] OT21 [2025-09-03T22:24:53.658Z] OT21 OK (1 test) [2025-09-03T22:24:53.658Z] OT21 [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - Monitoring Report Summary: [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - o Process OT21 ended with the expected exit code (0) [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - +------ Step 10 - Verify if we can patch an Application module using modular jar [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | Run foreground process [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | Program: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tmp/6.XpJVM/bin/java [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | Mnemonic: OT22 [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | Echo: ECHO_ON [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | Expectation: CLEAN_RUN within 5m [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - | [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/7.com.hello.jar -XX:+UseCompressedOops -classpath /Users/admin/workspace/externalDependency/system_lib/junit/junit.jar:/Users/admin/workspace/externalDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/10.OT22.stderr [2025-09-03T22:24:53.658Z] STF 18:24:53.577 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/results/10.OT22.stdout [2025-09-03T22:24:53.658Z] STF 18:24:53.578 - Monitoring processes: OT22 [2025-09-03T22:24:53.658Z] OT22 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2025-09-03T22:24:54.013Z] OT22 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/modules/7.com.hello.jar [2025-09-03T22:24:54.013Z] OT22 JUnit version 4.12 [2025-09-03T22:24:54.013Z] OT22 . [2025-09-03T22:24:54.013Z] OT22 Time: 0.002 [2025-09-03T22:24:54.013Z] OT22 [2025-09-03T22:24:54.013Z] OT22 OK (1 test) [2025-09-03T22:24:54.013Z] OT22 [2025-09-03T22:24:54.013Z] STF 18:24:53.692 - Monitoring Report Summary: [2025-09-03T22:24:54.013Z] STF 18:24:53.692 - o Process OT22 ended with the expected exit code (0) [2025-09-03T22:24:54.013Z] STF 18:24:53.692 - EXECUTE stage completed [2025-09-03T22:24:54.013Z] STF 18:24:53.698 - [2025-09-03T22:24:54.013Z] STF 18:24:53.698 - ==================== T E A R D O W N ==================== [2025-09-03T22:24:54.013Z] STF 18:24:53.698 - Running teardown: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_aarch64_mac_testList_1/aqa-tests/TKG/../TKG/output_17569358122610/PatModImg_AppMod_0/20250903-182449-PatModImgTest/tearDown.pl [2025-09-03T22:24:54.013Z] STF 18:24:53.723 - TEARDOWN stage completed [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - ===================== R E S U L T S ===================== [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - Stage results: [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - setUp: pass [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - execute: pass [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - teardown: pass [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - [2025-09-03T22:24:54.013Z] STF 18:24:53.735 - Overall result: PASSED [2025-09-03T22:24:54.014Z] ----------------------------------- [2025-09-03T22:24:54.014Z] PatModImg_AppMod_0_PASSED [2025-09-03T22:24:54.014Z] ----------------------------------- [2025-09-03T22:24:54.014Z] [2025-09-03T22:24:54.014Z] TEST TEARDOWN: [2025-09-03T22:24:54.014Z] Nothing to be done for teardown. [2025-09-03T22:24:54.014Z] PatModImg_AppMod_0 Finish Time: Wed Sep 3 18:24:53 2025 Epoch Time (ms): 1756938293753