PatModImg_AppMod_1

[2024-08-07T21:17:26.353Z] Running test PatModImg_AppMod_1 ... [2024-08-07T21:17:26.353Z] =============================================== [2024-08-07T21:17:26.353Z] PatModImg_AppMod_1 Start Time: Wed Aug 7 14:17:26 2024 Epoch Time (ms): 1723065446110 [2024-08-07T21:17:26.353Z] variation: Mode650 [2024-08-07T21:17:26.353Z] JVM_OPTIONS: -XX:-UseCompressedOops [2024-08-07T21:17:26.353Z] { \ [2024-08-07T21:17:26.353Z] echo ""; echo "TEST SETUP:"; \ [2024-08-07T21:17:26.353Z] echo "Nothing to be done for setup."; \ [2024-08-07T21:17:26.353Z] mkdir -p "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1"; \ [2024-08-07T21:17:26.353Z] cd "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1"; \ [2024-08-07T21:17:26.353Z] echo ""; echo "TESTING:"; \ [2024-08-07T21:17:26.353Z] perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_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_x86-64_mac_testList_1/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/../../testDependency/system_lib/" -java-args=' -XX:-UseCompressedOops ' -results-root="/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1" -test=PatModImgTest -test-args="variant=AppMod"; \ [2024-08-07T21:17:26.353Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatModImg_AppMod_1""_PASSED"; echo "-----------------------------------"; cd /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/..; rm -f -r "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1"; else echo "-----------------------------------"; echo "PatModImg_AppMod_1""_FAILED"; echo "-----------------------------------"; fi; \ [2024-08-07T21:17:26.353Z] echo ""; echo "TEST TEARDOWN:"; \ [2024-08-07T21:17:26.353Z] echo "Nothing to be done for teardown."; \ [2024-08-07T21:17:26.353Z] } 2>&1 | tee -a "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/TestTargetResult"; [2024-08-07T21:17:26.832Z] [2024-08-07T21:17:26.832Z] TEST SETUP: [2024-08-07T21:17:26.832Z] Nothing to be done for setup. [2024-08-07T21:17:26.832Z] [2024-08-07T21:17:26.832Z] TESTING: [2024-08-07T21:17:26.832Z] STF 14:17:26.449 - ========================= S T F ========================= [2024-08-07T21:17:26.832Z] systemtest-prereqs has been processed, and set to: /Users/admin/workspace/testDependency/system_libRetrieving amount of free space on drive containing /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1 [2024-08-07T21:17:26.832Z] There is 9988 Mb free [2024-08-07T21:17:26.832Z] STF 14:17:26.476 - ================== G E N E R A T I O N ================== [2024-08-07T21:17:26.832Z] STF 14:17:26.478 - Checking JVM: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/../ [2024-08-07T21:17:26.832Z] STF 14:17:26.478 - Starting process to generate scripts: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/..//bin/java -Dlog4j.skipJansi=true -Djava.system.class.loader=net.adoptopenjdk.stf.runner.StfClassLoader -classpath /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/../../testDependency/system_lib//log4j/log4j-api.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/../../testDependency/system_lib//log4j/log4j-core.jar:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_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_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/stf_parameters.properties, , /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest" [2024-08-07T21:17:26.832Z] GEN stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:30.786Z] GEN 14:17:29.995 - Found test. Project: 'openjdk.test.modularity' class: 'PatModImgTest.class' Dir: '/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2024-08-07T21:17:30.786Z] GEN 14:17:30.026 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModImgTest' [2024-08-07T21:17:31.263Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/STF/stf.core/bin [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/testDependency/system_lib/log4j/log4j-api.jar [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/testDependency/system_lib/log4j/log4j-core.jar [2024-08-07T21:17:31.263Z] GEN /Users/admin/workspace/testDependency/system_lib/junit/junit.jar [2024-08-07T21:17:31.263Z] GEN 14:17:30.757 - Using Mode NoOptions. Values = '' [2024-08-07T21:17:31.263Z] GEN 14:17:31.032 - [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - Test command summary: [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - Step Stage Command Description [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - -----+--------+-----------------+------------ [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 1 execute jar Create com.hello jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 2 execute jar Create com.hola jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 3 execute jar Create com.helper jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 4 execute jar Create com.discreet jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 5 execute jar Create tests jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 6 execute jlink Create runtime image for PatchModule test [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 7 execute jar Create com.hello jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.033 - 8 execute jar create java.xml.jar [2024-08-07T21:17:31.263Z] GEN 14:17:31.034 - 9 execute Run java Verify if we can patch an Application module using exploded directory [2024-08-07T21:17:31.263Z] GEN 14:17:31.034 - 10 execute Run java Verify if we can patch an Application module using modular jar [2024-08-07T21:17:31.978Z] STF 14:17:31.594 - [2024-08-07T21:17:31.978Z] STF 14:17:31.594 - Script generation completed [2024-08-07T21:17:31.978Z] STF 14:17:31.594 - [2024-08-07T21:17:31.978Z] STF 14:17:31.639 - [2024-08-07T21:17:31.978Z] STF 14:17:31.640 - ======================= S E T U P ======================= [2024-08-07T21:17:31.978Z] STF 14:17:31.640 - Running setup: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/setUp.pl [2024-08-07T21:17:33.804Z] STF 14:17:32.944 - SETUP stage completed [2024-08-07T21:17:33.804Z] STF 14:17:32.970 - [2024-08-07T21:17:33.804Z] STF 14:17:32.970 - ==================== E X E C U T E - ==================== [2024-08-07T21:17:33.804Z] STF 14:17:32.970 - Running execute: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/execute.pl [2024-08-07T21:17:33.804Z] STF 14:17:33.093 - [2024-08-07T21:17:33.804Z] STF 14:17:33.094 - Java version [2024-08-07T21:17:33.804Z] STF 14:17:33.094 - Running: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/java -version [2024-08-07T21:17:33.804Z] Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:33.804Z] STF 14:17:33.342 - [2024-08-07T21:17:33.804Z] STF 14:17:33.342 - +------ Step 1 - Create com.hello jar [2024-08-07T21:17:33.804Z] STF 14:17:33.342 - | Create modular jar [2024-08-07T21:17:33.804Z] STF 14:17:33.342 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hello [2024-08-07T21:17:33.804Z] STF 14:17:33.343 - | ModuleVersion: null [2024-08-07T21:17:33.804Z] STF 14:17:33.343 - | MainClass: null [2024-08-07T21:17:33.804Z] STF 14:17:33.343 - | HashModules: null [2024-08-07T21:17:33.804Z] STF 14:17:33.343 - | [2024-08-07T21:17:33.804Z] STF 14:17:33.344 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/1.com.hello.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello . [2024-08-07T21:17:33.804Z] STF 14:17:33.344 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/1.CMJ.stderr [2024-08-07T21:17:33.804Z] STF 14:17:33.344 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/1.CMJ.stdout [2024-08-07T21:17:33.804Z] openjdk version "21.0.5-beta" 2024-10-15 [2024-08-07T21:17:33.804Z] OpenJDK Runtime Environment Temurin-21.0.5+2-202408071904 (build 21.0.5-beta+2-ea) [2024-08-07T21:17:33.804Z] OpenJDK 64-Bit Server VM Temurin-21.0.5+2-202408071904 (build 21.0.5-beta+2-ea, mixed mode) [2024-08-07T21:17:33.804Z] STF 14:17:33.455 - Monitoring processes: CMJ [2024-08-07T21:17:34.260Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:36.114Z] STF 14:17:35.744 - Monitoring Report Summary: [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - Created modular jar: 1.com.hello.jar [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - +------ Step 2 - Create com.hola jar [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | Create modular jar [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.hola [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | ModuleVersion: null [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | MainClass: null [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | HashModules: null [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - | [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/2.com.hola.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola . [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/2.CMJ.stderr [2024-08-07T21:17:36.114Z] STF 14:17:35.745 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/2.CMJ.stdout [2024-08-07T21:17:36.114Z] STF 14:17:35.750 - Monitoring processes: CMJ [2024-08-07T21:17:36.114Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:37.665Z] STF 14:17:36.934 - Monitoring Report Summary: [2024-08-07T21:17:37.665Z] STF 14:17:36.934 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - Created modular jar: 2.com.hola.jar [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - +------ Step 3 - Create com.helper jar [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | Create modular jar [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.helper [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | ModuleVersion: null [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | MainClass: null [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | HashModules: null [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - | [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/3.com.helper.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper . [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/3.CMJ.stderr [2024-08-07T21:17:37.665Z] STF 14:17:36.935 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/3.CMJ.stdout [2024-08-07T21:17:37.665Z] STF 14:17:36.962 - Monitoring processes: CMJ [2024-08-07T21:17:37.665Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:39.535Z] STF 14:17:38.977 - Monitoring Report Summary: [2024-08-07T21:17:39.535Z] STF 14:17:38.985 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - Created modular jar: 3.com.helper.jar [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - +------ Step 4 - Create com.discreet jar [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | Create modular jar [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | ModuleSpec: openjdk.test.modularity/bin/common-mods/com.discreet [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | ModuleVersion: null [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | MainClass: null [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | HashModules: null [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - | [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/4.com.discreet.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet . [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/4.CMJ.stderr [2024-08-07T21:17:39.535Z] STF 14:17:38.986 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/4.CMJ.stdout [2024-08-07T21:17:39.535Z] STF 14:17:38.989 - Monitoring processes: CMJ [2024-08-07T21:17:39.535Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - Monitoring Report Summary: [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - Created modular jar: 4.com.discreet.jar [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - +------ Step 5 - Create tests jar [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | Create modular jar [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | ModuleSpec: openjdk.test.modularity/bin/tests/com.test [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | ModuleVersion: null [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | MainClass: null [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | HashModules: null [2024-08-07T21:17:40.552Z] STF 14:17:40.072 - | [2024-08-07T21:17:40.552Z] STF 14:17:40.073 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/5.com.test.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests/com.test . [2024-08-07T21:17:40.552Z] STF 14:17:40.073 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/5.CMJ.stderr [2024-08-07T21:17:40.552Z] STF 14:17:40.073 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/5.CMJ.stdout [2024-08-07T21:17:40.552Z] STF 14:17:40.104 - Monitoring processes: CMJ [2024-08-07T21:17:40.552Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - Monitoring Report Summary: [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - Created modular jar: 5.com.test.jar [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - +------ Step 6 - Create runtime image for PatchModule test [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - | Run jlink to create runtime image [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - | ImageName: XpJVM [2024-08-07T21:17:43.100Z] STF 14:17:42.546 - | [2024-08-07T21:17:43.100Z] STF 14:17:42.547 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jlink --module-path /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/jmods:/Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules --add-modules com.hello,com.hola,com.test,com.helper,com.discreet --output /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/tmp/6.XpJVM [2024-08-07T21:17:43.100Z] STF 14:17:42.547 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/6.JLNK.stderr [2024-08-07T21:17:43.100Z] STF 14:17:42.547 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/6.JLNK.stdout [2024-08-07T21:17:43.100Z] STF 14:17:42.549 - Monitoring processes: JLNK [2024-08-07T21:17:44.069Z] JLNK stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:17:57.961Z] STF 14:17:56.144 - Monitoring Report Summary: [2024-08-07T21:17:57.962Z] STF 14:17:56.144 - o Process JLNK ended with the expected exit code (0) [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - +------ Step 7 - Create com.hello jar [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | Create modular jar [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | ModuleVersion: null [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | MainClass: null [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | HashModules: null [2024-08-07T21:17:57.962Z] STF 14:17:56.145 - | [2024-08-07T21:17:57.962Z] STF 14:17:56.147 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/7.com.hello.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello . [2024-08-07T21:17:57.962Z] STF 14:17:56.147 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/7.CMJ.stderr [2024-08-07T21:17:57.962Z] STF 14:17:56.147 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/7.CMJ.stdout [2024-08-07T21:17:57.962Z] STF 14:17:56.416 - Monitoring processes: CMJ [2024-08-07T21:17:57.962Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:18:00.266Z] STF 14:17:59.828 - Monitoring Report Summary: [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - Created modular jar: 7.com.hello.jar [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - +------ Step 8 - create java.xml.jar [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | Create modular jar [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | ModuleVersion: null [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | MainClass: null [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | HashModules: null [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - | [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/8.java.xml.jar -C /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/java.xml . [2024-08-07T21:18:00.267Z] STF 14:17:59.828 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/8.CMJ.stderr [2024-08-07T21:18:00.267Z] STF 14:17:59.829 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/8.CMJ.stdout [2024-08-07T21:18:00.267Z] STF 14:17:59.849 - Monitoring processes: CMJ [2024-08-07T21:18:00.267Z] CMJ stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - Monitoring Report Summary: [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - o Process CMJ ended with the expected exit code (0) [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - Created modular jar: 8.java.xml.jar [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - +------ Step 9 - Verify if we can patch an Application module using exploded directory [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | Run foreground process [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | Program: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/tmp/6.XpJVM/bin/java [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | Mnemonic: OT21 [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | Echo: ECHO_ON [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | Expectation: CLEAN_RUN within 5m [2024-08-07T21:18:01.211Z] STF 14:18:00.928 - | [2024-08-07T21:18:01.211Z] STF 14:18:00.929 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-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_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello -XX:-UseCompressedOops -classpath /Users/admin/workspace/testDependency/system_lib/junit/junit.jar:/Users/admin/workspace/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-08-07T21:18:01.211Z] STF 14:18:00.929 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/9.OT21.stderr [2024-08-07T21:18:01.211Z] STF 14:18:00.929 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/9.OT21.stdout [2024-08-07T21:18:01.211Z] STF 14:18:00.931 - Monitoring processes: OT21 [2024-08-07T21:18:04.323Z] OT21 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:18:05.959Z] OT21 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello [2024-08-07T21:18:06.398Z] OT21 JUnit version 4.12 [2024-08-07T21:18:06.398Z] OT21 . [2024-08-07T21:18:06.398Z] OT21 Time: 0.021 [2024-08-07T21:18:06.398Z] OT21 [2024-08-07T21:18:06.398Z] OT21 OK (1 test) [2024-08-07T21:18:06.398Z] OT21 [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - Monitoring Report Summary: [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - o Process OT21 ended with the expected exit code (0) [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - +------ Step 10 - Verify if we can patch an Application module using modular jar [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | Run foreground process [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | Program: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/tmp/6.XpJVM/bin/java [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | Mnemonic: OT22 [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | Echo: ECHO_ON [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | Expectation: CLEAN_RUN within 5m [2024-08-07T21:18:06.398Z] STF 14:18:06.195 - | [2024-08-07T21:18:06.398Z] STF 14:18:06.196 - Running command: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-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_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/7.com.hello.jar -XX:-UseCompressedOops -classpath /Users/admin/workspace/testDependency/system_lib/junit/junit.jar:/Users/admin/workspace/testDependency/system_lib/junit/hamcrest-core.jar org.junit.runner.JUnitCore net.adoptopenjdk.test.modularity.junit.TestOverrideUsingAppModule [2024-08-07T21:18:06.398Z] STF 14:18:06.196 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/10.OT22.stderr [2024-08-07T21:18:06.398Z] STF 14:18:06.196 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/results/10.OT22.stdout [2024-08-07T21:18:06.398Z] STF 14:18:06.200 - Monitoring processes: OT22 [2024-08-07T21:18:06.877Z] OT22 stderr Picked up JAVA_TOOL_OPTIONS: -Djava.security.manager=allow [2024-08-07T21:18:07.288Z] OT22 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/modules/7.com.hello.jar [2024-08-07T21:18:07.288Z] OT22 JUnit version 4.12 [2024-08-07T21:18:07.289Z] OT22 . [2024-08-07T21:18:07.289Z] OT22 Time: 0.006 [2024-08-07T21:18:07.289Z] OT22 [2024-08-07T21:18:07.289Z] OT22 OK (1 test) [2024-08-07T21:18:07.289Z] OT22 [2024-08-07T21:18:07.818Z] STF 14:18:06.927 - Monitoring Report Summary: [2024-08-07T21:18:07.818Z] STF 14:18:06.927 - o Process OT22 ended with the expected exit code (0) [2024-08-07T21:18:07.818Z] STF 14:18:06.928 - EXECUTE stage completed [2024-08-07T21:18:07.818Z] STF 14:18:07.281 - [2024-08-07T21:18:07.818Z] STF 14:18:07.281 - ==================== T E A R D O W N ==================== [2024-08-07T21:18:07.818Z] STF 14:18:07.281 - Running teardown: perl /Users/admin/workspace/workspace/Test_openjdk21_hs_sanity.system_x86-64_mac_testList_1/aqa-tests/TKG/../TKG/output_17230625145098/PatModImg_AppMod_1/20240807-141726-PatModImgTest/tearDown.pl [2024-08-07T21:18:08.299Z] STF 14:18:07.698 - TEARDOWN stage completed [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - ===================== R E S U L T S ===================== [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - Stage results: [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - setUp: pass [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - execute: pass [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - teardown: pass [2024-08-07T21:18:08.299Z] STF 14:18:07.731 - [2024-08-07T21:18:08.299Z] STF 14:18:07.732 - Overall result: PASSED [2024-08-07T21:18:08.299Z] ----------------------------------- [2024-08-07T21:18:08.299Z] PatModImg_AppMod_1_PASSED [2024-08-07T21:18:08.299Z] ----------------------------------- [2024-08-07T21:18:08.768Z] [2024-08-07T21:18:08.768Z] TEST TEARDOWN: [2024-08-07T21:18:08.768Z] Nothing to be done for teardown. [2024-08-07T21:18:08.768Z] PatModImg_AppMod_1 Finish Time: Wed Aug 7 14:18:08 2024 Epoch Time (ms): 1723065488368