PatModImg_AppMod_0

[2024-11-14T20:36:28.540Z] Running test PatModImg_AppMod_0 ... [2024-11-14T20:36:28.540Z] =============================================== [2024-11-14T20:36:28.859Z] PatModImg_AppMod_0 Start Time: Thu Nov 14 20:36:28 2024 Epoch Time (ms): 1731616588614 [2024-11-14T20:36:28.859Z] variation: Mode150 [2024-11-14T20:36:29.232Z] JVM_OPTIONS: -XX:+UseCompressedOops [2024-11-14T20:36:29.233Z] { \ [2024-11-14T20:36:29.233Z] echo ""; echo "TEST SETUP:"; \ [2024-11-14T20:36:29.233Z] echo "Nothing to be done for setup."; \ [2024-11-14T20:36:29.233Z] mkdir -p "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\\TKG\\output_17316146282192\\PatModImg_AppMod_0"; \ [2024-11-14T20:36:29.233Z] cd "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\\TKG\\output_17316146282192\\PatModImg_AppMod_0"; \ [2024-11-14T20:36:29.233Z] echo ""; echo "TESTING:"; \ [2024-11-14T20:36:29.233Z] perl C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests///..//jvmtest\\system\\modularity/../\\STF\\stf.core\\scripts\\stf.pl -test-root="C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests///..//jvmtest\\system\\modularity/../\\STF;C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests///..//jvmtest\\system\\modularity/../\\aqa-systemtest""" -systemtest-prereqs="c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/../../testDependency/system_lib\\" -java-args=' -XX:+UseCompressedOops ' -results-root="C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\\TKG\\output_17316146282192\\PatModImg_AppMod_0" -test=PatModImgTest -test-args="variant=AppMod"; \ [2024-11-14T20:36:29.233Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatModImg_AppMod_0""_PASSED"; echo "-----------------------------------"; cd C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/; rm -f -r "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\\TKG\\output_17316146282192\\PatModImg_AppMod_0"; else echo "-----------------------------------"; echo "PatModImg_AppMod_0""_FAILED"; echo "-----------------------------------"; fi; \ [2024-11-14T20:36:29.233Z] echo ""; echo "TEST TEARDOWN:"; \ [2024-11-14T20:36:29.233Z] echo "Nothing to be done for teardown."; \ [2024-11-14T20:36:29.233Z] } 2>&1 | tee -a "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\\TKG\\output_17316146282192\\TestTargetResult"; [2024-11-14T20:36:29.233Z] [2024-11-14T20:36:29.233Z] TEST SETUP: [2024-11-14T20:36:29.233Z] Nothing to be done for setup. [2024-11-14T20:36:29.233Z] [2024-11-14T20:36:29.233Z] TESTING: [2024-11-14T20:36:29.561Z] STF 20:36:29.246 - ========================= S T F ========================= [2024-11-14T20:36:29.561Z] systemtest-prereqs has been processed, and set to: c:/workspace/testDependency/system_libRetrieving amount of free space on drive containing C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0 [2024-11-14T20:36:29.561Z] There is 96468 Mb free [2024-11-14T20:36:29.561Z] STF 20:36:29.307 - ================== G E N E R A T I O N ================== [2024-11-14T20:36:29.561Z] STF 20:36:29.310 - Checking JVM: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image [2024-11-14T20:36:29.561Z] STF 20:36:29.310 - Starting process to generate scripts: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -classpath c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/../../testDependency/system_lib\/log4j/log4j-api.jar;c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/../../testDependency/system_lib\/log4j/log4j-core.jar;C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0/20241114-203629-PatModImgTest/stf_parameters.properties, , C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0/20241114-203629-PatModImgTest" [2024-11-14T20:36:29.561Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:29.561Z] GEN [0.026s][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-14T20:36:31.169Z] GEN 20:36:30.644 - Found test. Project: 'openjdk.test.modularity' class: 'PatModImgTest.class' Dir: 'C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin' [2024-11-14T20:36:31.169Z] GEN 20:36:30.662 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModImgTest' [2024-11-14T20:36:31.169Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayService [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.helper [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayServiceImpl1 [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.discreet [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hello [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hola [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\displayServiceImpl2 [2024-11-14T20:36:31.169Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hi [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override-new [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common\displayServiceImpl3 [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common\displayServiceImpl4 [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common [2024-11-14T20:36:31.170Z] GEN C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\tests [2024-11-14T20:36:31.170Z] GEN C:\\workspace\\workspace\\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\\jvmtest\\system\\aqa-systemtest\\openjdk.test.modularity\\bin [2024-11-14T20:36:31.170Z] GEN C:\\workspace\\workspace\\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\\jvmtest\\system\\STF\\stf.core\\bin [2024-11-14T20:36:31.170Z] GEN c:/workspace/testDependency/system_lib/log4j/log4j-api.jar [2024-11-14T20:36:31.170Z] GEN c:/workspace/testDependency/system_lib/log4j/log4j-core.jar [2024-11-14T20:36:31.170Z] GEN c:/workspace/testDependency/system_lib/junit/junit.jar [2024-11-14T20:36:31.170Z] GEN 20:36:30.944 - Using Mode NoOptions. Values = '' [2024-11-14T20:36:31.170Z] GEN 20:36:31.062 - [2024-11-14T20:36:31.170Z] GEN 20:36:31.062 - Test command summary: [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - Step Stage Command Description [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - -----+--------+-----------------+------------ [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - 1 execute jar Create com.hello jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - 2 execute jar Create com.hola jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - 3 execute jar Create com.helper jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.063 - 4 execute jar Create com.discreet jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 5 execute jar Create tests jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 6 execute jlink Create runtime image for PatchModule test [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 7 execute jar Create com.hello jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 8 execute jar create java.xml.jar [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 9 execute Run java Verify if we can patch an Application module using exploded directory [2024-11-14T20:36:31.170Z] GEN 20:36:31.064 - 10 execute Run java Verify if we can patch an Application module using modular jar [2024-11-14T20:36:31.170Z] STF 20:36:31.116 - [2024-11-14T20:36:31.170Z] STF 20:36:31.116 - Script generation completed [2024-11-14T20:36:31.170Z] STF 20:36:31.116 - [2024-11-14T20:36:31.170Z] STF 20:36:31.118 - [2024-11-14T20:36:31.170Z] STF 20:36:31.118 - ======================= S E T U P ======================= [2024-11-14T20:36:31.170Z] STF 20:36:31.118 - Running setup: perl C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0/20241114-203629-PatModImgTest/setUp.pl [2024-11-14T20:36:31.493Z] STF 20:36:31.334 - SETUP stage completed [2024-11-14T20:36:31.493Z] STF 20:36:31.354 - [2024-11-14T20:36:31.493Z] STF 20:36:31.354 - ==================== E X E C U T E - ==================== [2024-11-14T20:36:31.493Z] STF 20:36:31.354 - Running execute: perl C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0/20241114-203629-PatModImgTest/execute.pl [2024-11-14T20:36:31.826Z] STF 20:36:31.538 - [2024-11-14T20:36:31.826Z] STF 20:36:31.538 - Java version [2024-11-14T20:36:31.826Z] STF 20:36:31.538 - Running: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/java -version [2024-11-14T20:36:31.826Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:31.826Z] openjdk version "21.0.6-beta" 2025-01-21 [2024-11-14T20:36:31.826Z] OpenJDK Runtime Environment Temurin-21.0.6+3-202411132002 (build 21.0.6-beta+3-ea) [2024-11-14T20:36:31.826Z] OpenJDK 64-Bit Server VM Temurin-21.0.6+3-202411132002 (build 21.0.6-beta+3-ea, mixed mode, sharing) [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - +------ Step 1 - Create com.hello jar [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | Create modular jar [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | ModuleVersion: null [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | MainClass: null [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | HashModules: null [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - | [2024-11-14T20:36:31.826Z] STF 20:36:31.660 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/1.com.hello.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hello . [2024-11-14T20:36:31.826Z] STF 20:36:31.661 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/1.CMJ.stderr [2024-11-14T20:36:31.827Z] STF 20:36:31.661 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/1.CMJ.stdout [2024-11-14T20:36:31.827Z] STF 20:36:31.699 - Monitoring processes: CMJ [2024-11-14T20:36:31.827Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - Monitoring Report Summary: [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - Created modular jar: 1.com.hello.jar [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - +------ Step 2 - Create com.hola jar [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | Create modular jar [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hola [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | ModuleVersion: null [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | MainClass: null [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | HashModules: null [2024-11-14T20:36:32.153Z] STF 20:36:32.106 - | [2024-11-14T20:36:32.153Z] STF 20:36:32.107 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/2.com.hola.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.hola . [2024-11-14T20:36:32.153Z] STF 20:36:32.107 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/2.CMJ.stderr [2024-11-14T20:36:32.153Z] STF 20:36:32.107 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/2.CMJ.stdout [2024-11-14T20:36:32.153Z] STF 20:36:32.115 - Monitoring processes: CMJ [2024-11-14T20:36:32.482Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - Monitoring Report Summary: [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - Created modular jar: 2.com.hola.jar [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - +------ Step 3 - Create com.helper jar [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | Create modular jar [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.helper [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | ModuleVersion: null [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | MainClass: null [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | HashModules: null [2024-11-14T20:36:32.809Z] STF 20:36:32.513 - | [2024-11-14T20:36:32.809Z] STF 20:36:32.514 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/3.com.helper.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.helper . [2024-11-14T20:36:32.809Z] STF 20:36:32.514 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/3.CMJ.stderr [2024-11-14T20:36:32.809Z] STF 20:36:32.514 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/3.CMJ.stdout [2024-11-14T20:36:32.809Z] STF 20:36:32.522 - Monitoring processes: CMJ [2024-11-14T20:36:32.809Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - Monitoring Report Summary: [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - Created modular jar: 3.com.helper.jar [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - +------ Step 4 - Create com.discreet jar [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | Create modular jar [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.discreet [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | ModuleVersion: null [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | MainClass: null [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | HashModules: null [2024-11-14T20:36:33.140Z] STF 20:36:32.923 - | [2024-11-14T20:36:33.141Z] STF 20:36:32.924 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/4.com.discreet.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-mods\com.discreet . [2024-11-14T20:36:33.141Z] STF 20:36:32.924 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/4.CMJ.stderr [2024-11-14T20:36:33.141Z] STF 20:36:32.924 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/4.CMJ.stdout [2024-11-14T20:36:33.141Z] STF 20:36:32.932 - Monitoring processes: CMJ [2024-11-14T20:36:33.141Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - Monitoring Report Summary: [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - Created modular jar: 4.com.discreet.jar [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - +------ Step 5 - Create tests jar [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - | Create modular jar [2024-11-14T20:36:33.471Z] STF 20:36:33.344 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - | ModuleVersion: null [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - | MainClass: null [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - | HashModules: null [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - | [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/5.com.test.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\tests\com.test . [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/5.CMJ.stderr [2024-11-14T20:36:33.471Z] STF 20:36:33.345 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/5.CMJ.stdout [2024-11-14T20:36:33.471Z] STF 20:36:33.353 - Monitoring processes: CMJ [2024-11-14T20:36:33.471Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - Monitoring Report Summary: [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - Created modular jar: 5.com.test.jar [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - +------ Step 6 - Create runtime image for PatchModule test [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - | Run jlink to create runtime image [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - | ImageName: XpJVM [2024-11-14T20:36:34.176Z] STF 20:36:33.794 - | [2024-11-14T20:36:34.176Z] STF 20:36:33.795 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jlink --module-path c:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jdkbinary\j2sdk-image\jmods;C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\aqa-tests\TKG\output_17316146282192\PatModImg_AppMod_0\20241114-203629-PatModImgTest\modules --add-modules com.hello,com.hola,com.test,com.helper,com.discreet --output C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\aqa-tests\TKG\output_17316146282192\PatModImg_AppMod_0\20241114-203629-PatModImgTest\tmp\6.XpJVM [2024-11-14T20:36:34.176Z] STF 20:36:33.795 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/6.JLNK.stderr [2024-11-14T20:36:34.176Z] STF 20:36:33.795 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/6.JLNK.stdout [2024-11-14T20:36:34.176Z] STF 20:36:33.802 - Monitoring processes: JLNK [2024-11-14T20:36:34.176Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - Monitoring Report Summary: [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - o Process JLNK ended with the expected exit code (0) [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - +------ Step 7 - Create com.hello jar [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | Create modular jar [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | ModuleVersion: null [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | MainClass: null [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | HashModules: null [2024-11-14T20:36:37.065Z] STF 20:36:36.860 - | [2024-11-14T20:36:37.065Z] STF 20:36:36.861 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/7.com.hello.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello . [2024-11-14T20:36:37.065Z] STF 20:36:36.861 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/7.CMJ.stderr [2024-11-14T20:36:37.065Z] STF 20:36:36.861 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/7.CMJ.stdout [2024-11-14T20:36:37.065Z] STF 20:36:36.891 - Monitoring processes: CMJ [2024-11-14T20:36:37.065Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:37.752Z] STF 20:36:37.375 - Monitoring Report Summary: [2024-11-14T20:36:37.753Z] STF 20:36:37.375 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - Created modular jar: 7.com.hello.jar [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - +------ Step 8 - create java.xml.jar [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | Create modular jar [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | ModuleVersion: null [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | MainClass: null [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | HashModules: null [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - | [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - Running command: c:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/jdkbinary/j2sdk-image/bin/jar --create --file C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/8.java.xml.jar -C C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\java.xml . [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/8.CMJ.stderr [2024-11-14T20:36:37.753Z] STF 20:36:37.376 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/8.CMJ.stdout [2024-11-14T20:36:37.753Z] STF 20:36:37.383 - Monitoring processes: CMJ [2024-11-14T20:36:37.753Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:38.079Z] STF 20:36:37.763 - Monitoring Report Summary: [2024-11-14T20:36:38.079Z] STF 20:36:37.763 - o Process CMJ ended with the expected exit code (0) [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - Created modular jar: 8.java.xml.jar [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - +------ Step 9 - Verify if we can patch an Application module using exploded directory [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | Run foreground process [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | Program: C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/tmp/6.XpJVM/bin/java [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | Mnemonic: OT21 [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | Echo: ECHO_ON [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | Expectation: CLEAN_RUN within 5m [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - | [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - Running command: C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello -XX:+UseCompressedOops -classpath c:/workspace/testDependency/system_lib/junit/junit.jar;c:/workspace/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/9.OT21.stderr [2024-11-14T20:36:38.079Z] STF 20:36:37.764 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/9.OT21.stdout [2024-11-14T20:36:38.079Z] STF 20:36:37.794 - Monitoring processes: OT21 [2024-11-14T20:36:38.079Z] OT21 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:38.402Z] OT21 stderr WARNING: module-info.class ignored in patch: C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\jvmtest\system\aqa-systemtest\openjdk.test.modularity\bin\common-override\com.hello [2024-11-14T20:36:38.402Z] OT21 JUnit version 4.12 [2024-11-14T20:36:38.402Z] OT21 . [2024-11-14T20:36:38.402Z] OT21 Time: 0.016 [2024-11-14T20:36:38.402Z] OT21 [2024-11-14T20:36:38.402Z] OT21 OK (1 test) [2024-11-14T20:36:38.402Z] OT21 [2024-11-14T20:36:38.402Z] STF 20:36:38.253 - Monitoring Report Summary: [2024-11-14T20:36:38.402Z] STF 20:36:38.253 - o Process OT21 ended with the expected exit code (0) [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - +------ Step 10 - Verify if we can patch an Application module using modular jar [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | Run foreground process [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | Program: C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/tmp/6.XpJVM/bin/java [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | Mnemonic: OT22 [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | Echo: ECHO_ON [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | Expectation: CLEAN_RUN within 5m [2024-11-14T20:36:38.402Z] STF 20:36:38.254 - | [2024-11-14T20:36:38.403Z] STF 20:36:38.254 - Running command: C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/tmp/6.XpJVM/bin/java --add-reads com.test=ALL-UNNAMED --patch-module com.hello=C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/modules/7.com.hello.jar -XX:+UseCompressedOops -classpath c:/workspace/testDependency/system_lib/junit/junit.jar;c:/workspace/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-11-14T20:36:38.403Z] STF 20:36:38.254 - Redirecting stderr to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/10.OT22.stderr [2024-11-14T20:36:38.403Z] STF 20:36:38.254 - Redirecting stdout to C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/TKG/output_17316146282192/PatModImg_AppMod_0/20241114-203629-PatModImgTest/results/10.OT22.stdout [2024-11-14T20:36:38.403Z] STF 20:36:38.262 - Monitoring processes: OT22 [2024-11-14T20:36:38.403Z] OT22 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-11-14T20:36:38.724Z] OT22 stderr WARNING: module-info.class ignored in patch: C:\workspace\workspace\Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1\aqa-tests\TKG\output_17316146282192\PatModImg_AppMod_0\20241114-203629-PatModImgTest\modules\7.com.hello.jar [2024-11-14T20:36:38.724Z] OT22 JUnit version 4.12 [2024-11-14T20:36:38.724Z] OT22 . [2024-11-14T20:36:38.724Z] OT22 Time: 0.008 [2024-11-14T20:36:38.724Z] OT22 [2024-11-14T20:36:38.724Z] OT22 OK (1 test) [2024-11-14T20:36:38.724Z] OT22 [2024-11-14T20:36:39.115Z] STF 20:36:38.669 - Monitoring Report Summary: [2024-11-14T20:36:39.115Z] STF 20:36:38.669 - o Process OT22 ended with the expected exit code (0) [2024-11-14T20:36:39.115Z] STF 20:36:38.670 - EXECUTE stage completed [2024-11-14T20:36:39.115Z] STF 20:36:38.752 - [2024-11-14T20:36:39.115Z] STF 20:36:38.752 - ==================== T E A R D O W N ==================== [2024-11-14T20:36:39.116Z] STF 20:36:38.752 - Running teardown: perl C:/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_windows_testList_1/aqa-tests/\TKG\output_17316146282192\PatModImg_AppMod_0/20241114-203629-PatModImgTest/tearDown.pl [2024-11-14T20:36:39.116Z] STF 20:36:38.928 - TEARDOWN stage completed [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - ===================== R E S U L T S ===================== [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - Stage results: [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - setUp: pass [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - execute: pass [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - teardown: pass [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - [2024-11-14T20:36:39.116Z] STF 20:36:38.943 - Overall result: PASSED [2024-11-14T20:36:39.116Z] ----------------------------------- [2024-11-14T20:36:39.116Z] PatModImg_AppMod_0_PASSED [2024-11-14T20:36:39.116Z] ----------------------------------- [2024-11-14T20:36:39.487Z] [2024-11-14T20:36:39.487Z] TEST TEARDOWN: [2024-11-14T20:36:39.487Z] Nothing to be done for teardown. [2024-11-14T20:36:39.487Z] PatModImg_AppMod_0 Finish Time: Thu Nov 14 20:36:39 2024 Epoch Time (ms): 1731616599251