PatMod_Adv_0

[2025-01-11T01:56:24.528Z] Running test PatMod_Adv_0 ... [2025-01-11T01:56:24.528Z] =============================================== [2025-01-11T01:56:24.528Z] PatMod_Adv_0 Start Time: Fri Jan 10 17:56:21 2025 Epoch Time (ms): 1736560581726 [2025-01-11T01:56:24.528Z] variation: Mode150 [2025-01-11T01:56:24.528Z] JVM_OPTIONS: -XX:+UseCompressedOops [2025-01-11T01:56:24.528Z] { \ [2025-01-11T01:56:24.528Z] echo ""; echo "TEST SETUP:"; \ [2025-01-11T01:56:24.528Z] echo "Nothing to be done for setup."; \ [2025-01-11T01:56:24.528Z] mkdir -p "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0"; \ [2025-01-11T01:56:24.528Z] cd "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0"; \ [2025-01-11T01:56:24.528Z] echo ""; echo "TESTING:"; \ [2025-01-11T01:56:24.528Z] perl /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF/stf.core/scripts/stf.pl -test-root="/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//STF;/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../../jvmtest/system/modularity/..//aqa-systemtest""" -systemtest-prereqs="/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/../../testDependency/system_lib/" -java-args=' -XX:+UseCompressedOops ' -results-root="/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0" -test=PatModTest -test-args="variant=Adv"; \ [2025-01-11T01:56:24.528Z] if [ $? -eq 0 ]; then echo "-----------------------------------"; echo "PatMod_Adv_0""_PASSED"; echo "-----------------------------------"; cd /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/..; rm -f -r "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0"; else echo "-----------------------------------"; echo "PatMod_Adv_0""_FAILED"; echo "-----------------------------------"; fi; \ [2025-01-11T01:56:24.528Z] echo ""; echo "TEST TEARDOWN:"; \ [2025-01-11T01:56:24.528Z] echo "Nothing to be done for teardown."; \ [2025-01-11T01:56:24.528Z] } 2>&1 | tee -a "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/TestTargetResult"; [2025-01-11T01:56:24.528Z] [2025-01-11T01:56:24.528Z] TEST SETUP: [2025-01-11T01:56:24.528Z] Nothing to be done for setup. [2025-01-11T01:56:24.528Z] [2025-01-11T01:56:24.528Z] TESTING: [2025-01-11T01:56:24.922Z] STF 17:56:22.006 - ========================= S T F ========================= [2025-01-11T01:56:24.922Z] 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_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0 [2025-01-11T01:56:24.922Z] There is 11399 Mb free [2025-01-11T01:56:24.922Z] STF 17:56:22.022 - ================== G E N E R A T I O N ================== [2025-01-11T01:56:24.922Z] STF 17:56:22.023 - Checking JVM: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/../ [2025-01-11T01:56:24.922Z] STF 17:56:22.023 - Starting process to generate scripts: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/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_openjdk17_hs_sanity.system_x86-64_mac_testList_2/../../testDependency/system_lib//log4j/log4j-api.jar:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/../../testDependency/system_lib//log4j/log4j-core.jar:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/STF/stf.core/scripts/../bin net.adoptopenjdk.stf.runner.StfRunner -properties "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/stf_parameters.properties, , /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/STF/stf.core/config/stf.properties" -testDir "/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest" [2025-01-11T01:56:26.449Z] GEN 17:56:23.492 - Found test. Project: 'openjdk.test.modularity' class: 'PatModTest.class' Dir: '/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin' [2025-01-11T01:56:26.449Z] GEN 17:56:23.513 - Found test. Project: 'openjdk.test.modularity' class: 'net.adoptopenjdk.test.modularity.PatModTest' [2025-01-11T01:56:27.396Z] GEN Classpath directories used by project 'openjdk.test.modularity': [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayService [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.helper [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl1 [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.discreet [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hello [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hola [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/displayServiceImpl2 [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods/com.hi [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl3 [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common/displayServiceImpl4 [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/STF/stf.core/bin [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/testDependency/system_lib/log4j/log4j-api.jar [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/testDependency/system_lib/log4j/log4j-core.jar [2025-01-11T01:56:27.396Z] GEN /Users/admin/workspace/testDependency/system_lib/junit/junit.jar [2025-01-11T01:56:27.396Z] GEN 17:56:24.579 - Using Mode NoOptions. Values = '' [2025-01-11T01:56:27.396Z] GEN 17:56:24.688 - [2025-01-11T01:56:27.396Z] GEN 17:56:24.688 - Test command summary: [2025-01-11T01:56:27.396Z] GEN 17:56:24.688 - Step Stage Command Description [2025-01-11T01:56:27.396Z] GEN 17:56:24.688 - -----+--------+-----------------+------------ [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 1 execute jar Create com.hello jar [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 2 execute jar Create com.discreet jar [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 3 execute jar create java.xml.jar [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 4 execute Run java Run application class override test where we specify two exploded module paths in a single --patch-module option [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 5 execute Run java (Negative test) Verify if a module can be specified only once on --patch-module [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 6 execute Run java Combine stderr and stdout files of process OT7 [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 7 execute count Check output [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 8 execute Run java (Negative test) Verify if --patch-module allows replacing of module-info.class [2025-01-11T01:56:27.396Z] GEN 17:56:24.689 - 9 execute count Check output [2025-01-11T01:56:27.396Z] STF 17:56:24.790 - [2025-01-11T01:56:27.396Z] STF 17:56:24.790 - Script generation completed [2025-01-11T01:56:27.396Z] STF 17:56:24.790 - [2025-01-11T01:56:27.798Z] STF 17:56:24.792 - [2025-01-11T01:56:27.799Z] STF 17:56:24.792 - ======================= S E T U P ======================= [2025-01-11T01:56:27.799Z] STF 17:56:24.792 - Running setup: perl /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/setUp.pl [2025-01-11T01:56:27.799Z] STF 17:56:24.899 - SETUP stage completed [2025-01-11T01:56:27.799Z] STF 17:56:24.915 - [2025-01-11T01:56:27.799Z] STF 17:56:24.915 - ==================== E X E C U T E - ==================== [2025-01-11T01:56:27.799Z] STF 17:56:24.915 - Running execute: perl /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/execute.pl [2025-01-11T01:56:27.799Z] STF 17:56:25.068 - [2025-01-11T01:56:27.799Z] STF 17:56:25.068 - Java version [2025-01-11T01:56:27.799Z] STF 17:56:25.068 - Running: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java -version [2025-01-11T01:56:28.222Z] openjdk version "17.0.14" 2025-01-21 [2025-01-11T01:56:28.222Z] OpenJDK Runtime Environment Temurin-17.0.14+6 (build 17.0.14+6) [2025-01-11T01:56:28.222Z] OpenJDK 64-Bit Server VM Temurin-17.0.14+6 (build 17.0.14+6, mixed mode) [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - +------ Step 1 - Create com.hello jar [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | Create modular jar [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.hello [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | ModuleVersion: null [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | MainClass: null [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | HashModules: null [2025-01-11T01:56:28.222Z] STF 17:56:25.243 - | [2025-01-11T01:56:28.222Z] STF 17:56:25.244 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/modules/1.com.hello.jar -C /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello . [2025-01-11T01:56:28.222Z] STF 17:56:25.244 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/1.CMJ.stderr [2025-01-11T01:56:28.223Z] STF 17:56:25.244 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/1.CMJ.stdout [2025-01-11T01:56:28.223Z] STF 17:56:25.258 - Monitoring processes: CMJ [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - Monitoring Report Summary: [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - o Process CMJ ended with the expected exit code (0) [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - Created modular jar: 1.com.hello.jar [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - +------ Step 2 - Create com.discreet jar [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | Create modular jar [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | ModuleSpec: openjdk.test.modularity/bin/common-override/com.discreet [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | ModuleVersion: null [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | MainClass: null [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | HashModules: null [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - | [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/modules/2.com.discreet.jar -C /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.discreet . [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/2.CMJ.stderr [2025-01-11T01:56:28.606Z] STF 17:56:25.850 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/2.CMJ.stdout [2025-01-11T01:56:28.606Z] STF 17:56:25.852 - Monitoring processes: CMJ [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - Monitoring Report Summary: [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - o Process CMJ ended with the expected exit code (0) [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - Created modular jar: 2.com.discreet.jar [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - +------ Step 3 - create java.xml.jar [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | Create modular jar [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | ModuleSpec: openjdk.test.modularity/bin/common-override/java.xml [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | ModuleVersion: null [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | MainClass: null [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | HashModules: null [2025-01-11T01:56:29.014Z] STF 17:56:26.313 - | [2025-01-11T01:56:29.014Z] STF 17:56:26.314 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/jar --create --file /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/modules/3.java.xml.jar -C /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/java.xml . [2025-01-11T01:56:29.014Z] STF 17:56:26.314 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/3.CMJ.stderr [2025-01-11T01:56:29.014Z] STF 17:56:26.314 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/3.CMJ.stdout [2025-01-11T01:56:29.014Z] STF 17:56:26.316 - Monitoring processes: CMJ [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - Monitoring Report Summary: [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - o Process CMJ ended with the expected exit code (0) [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - Created modular jar: 3.java.xml.jar [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - +------ Step 4 - Run application class override test where we specify two exploded module paths in a single --patch-module option [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | Run foreground process [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | Program: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | Mnemonic: OT56 [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | Echo: ECHO_ON [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | Expectation: CLEAN_RUN within 1m [2025-01-11T01:56:29.447Z] STF 17:56:26.755 - | [2025-01-11T01:56:29.447Z] STF 17:56:26.756 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --add-exports com.hello/adoptopenjdk.test.modularity.newpkg=com.test --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/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.TestOverrideUsingMultipleFilePaths [2025-01-11T01:56:29.447Z] STF 17:56:26.756 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/4.OT56.stderr [2025-01-11T01:56:29.447Z] STF 17:56:26.756 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/4.OT56.stdout [2025-01-11T01:56:29.447Z] STF 17:56:26.758 - Monitoring processes: OT56 [2025-01-11T01:56:29.869Z] OT56 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override/com.hello [2025-01-11T01:56:29.869Z] OT56 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello [2025-01-11T01:56:29.869Z] OT56 JUnit version 4.12 [2025-01-11T01:56:30.273Z] OT56 ... [2025-01-11T01:56:30.273Z] OT56 Time: 0.005 [2025-01-11T01:56:30.273Z] OT56 [2025-01-11T01:56:30.273Z] OT56 OK (3 tests) [2025-01-11T01:56:30.273Z] OT56 [2025-01-11T01:56:30.273Z] STF 17:56:27.469 - Monitoring Report Summary: [2025-01-11T01:56:30.273Z] STF 17:56:27.469 - o Process OT56 ended with the expected exit code (0) [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - +------ Step 5 - (Negative test) Verify if a module can be specified only once on --patch-module [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | Run foreground process [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | Program: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | Mnemonic: OT7 [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | Echo: ECHO_ON [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | Expectation: NON_ZERO_EXIT [1] within 1m [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - | [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/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 [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/5.OT7.stderr [2025-01-11T01:56:30.273Z] STF 17:56:27.470 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/5.OT7.stdout [2025-01-11T01:56:30.273Z] STF 17:56:27.472 - Monitoring processes: OT7 [2025-01-11T01:56:30.710Z] OT7 Error occurred during initialization of boot layer [2025-01-11T01:56:30.710Z] OT7 java.lang.ExceptionInInitializerError [2025-01-11T01:56:30.710Z] OT7 Caused by: java.lang.RuntimeException: com.hello specified more than once to --patch-module [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - Monitoring Report Summary: [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - o Process OT7 ended with the expected exit code (1) [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - +------ Step 6 - Combine stderr and stdout files of process OT7 [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | Run foreground process [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | Program: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | Mnemonic: CO [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | Echo: ECHO_OFF [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | Expectation: NON_ZERO_EXIT [0] within 30s [2025-01-11T01:56:30.710Z] STF 17:56:27.661 - | [2025-01-11T01:56:30.710Z] STF 17:56:27.662 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java -Dfile1=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/5.OT7.stdout -Dfile2=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/5.OT7.stderr -Dfinal.file=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/combinedOT7.txt -XX:+UseCompressedOops -classpath /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/STF/stf.core/bin:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin net.adoptopenjdk.test.modularity.TestUtil [2025-01-11T01:56:30.710Z] STF 17:56:27.662 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/6.CO.stderr [2025-01-11T01:56:30.710Z] STF 17:56:27.662 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/6.CO.stdout [2025-01-11T01:56:30.710Z] STF 17:56:27.664 - Monitoring processes: CO [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - Monitoring Report Summary: [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - o Process CO ended with the expected exit code (0) [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - +------ Step 7 - Check output [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Count file matches [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | TargetFile: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/combinedOT7.txt [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | ExpectedNumMatches: 1 [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | SearchStrings: ["java.lang.ExceptionInInitializerError"] [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - Found 1 instances of ["java.lang.ExceptionInInitializerError"] [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - +------ Step 8 - (Negative test) Verify if --patch-module allows replacing of module-info.class [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Run foreground process [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Program: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Mnemonic: OT8 [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Echo: ECHO_ON [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | Expectation: NON_ZERO_EXIT [1] within 1m [2025-01-11T01:56:30.710Z] STF 17:56:27.970 - | [2025-01-11T01:56:30.710Z] STF 17:56:27.971 - Running command: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jdkbinary/j2sdk-image/Contents/Home/bin/java --add-reads com.test=ALL-UNNAMED --module-path /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-mods:/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/tests --add-modules=com.test --patch-module com.hello=/Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/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.TestOverrideUsingUnexportedPublicType [2025-01-11T01:56:30.710Z] STF 17:56:27.971 - Redirecting stderr to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/8.OT8.stderr [2025-01-11T01:56:30.710Z] STF 17:56:27.971 - Redirecting stdout to /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/8.OT8.stdout [2025-01-11T01:56:30.710Z] STF 17:56:27.974 - Monitoring processes: OT8 [2025-01-11T01:56:31.111Z] OT8 stderr WARNING: module-info.class ignored in patch: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/jvmtest/system/aqa-systemtest/openjdk.test.modularity/bin/common-override-new/com.hello [2025-01-11T01:56:31.111Z] OT8 JUnit version 4.12 [2025-01-11T01:56:31.496Z] OT8 .E [2025-01-11T01:56:31.496Z] OT8 Time: 0.02 [2025-01-11T01:56:31.496Z] OT8 There was 1 failure: [2025-01-11T01:56:31.496Z] OT8 1) testPatchingOfNewClassInExistingPackage(net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType) [2025-01-11T01:56:31.496Z] OT8 java.lang.IllegalAccessException: class net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType (in module com.test) cannot access class adoptopenjdk.test.modularity.newpkg.NewClass2 (in module com.hello) because module com.hello does not export adoptopenjdk.test.modularity.newpkg to module com.test [2025-01-11T01:56:31.496Z] OT8 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) [2025-01-11T01:56:31.496Z] OT8 at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) [2025-01-11T01:56:31.496Z] OT8 at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:490) [2025-01-11T01:56:31.496Z] OT8 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) [2025-01-11T01:56:31.496Z] OT8 at com.test/net.adoptopenjdk.test.modularity.junit.TestOverrideUsingUnexportedPublicType.testPatchingOfNewClassInExistingPackage(TestOverrideUsingUnexportedPublicType.java:34) [2025-01-11T01:56:31.496Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2025-01-11T01:56:31.496Z] OT8 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [2025-01-11T01:56:31.496Z] OT8 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2025-01-11T01:56:31.496Z] OT8 at java.base/java.lang.reflect.Method.invoke(Method.java:569) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [2025-01-11T01:56:31.496Z] OT8 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [2025-01-11T01:56:31.496Z] OT8 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:128) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.Suite.runChild(Suite.java:27) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runner.JUnitCore.run(JUnitCore.java:115) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77) [2025-01-11T01:56:31.496Z] OT8 at org.junit.runner.JUnitCore.main(JUnitCore.java:36) [2025-01-11T01:56:31.496Z] OT8 [2025-01-11T01:56:31.496Z] OT8 FAILURES!!! [2025-01-11T01:56:31.496Z] OT8 Tests run: 1, Failures: 1 [2025-01-11T01:56:31.496Z] OT8 [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - Monitoring Report Summary: [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - o Process OT8 ended with the expected exit code (1) [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - +------ Step 9 - Check output [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - | Count file matches [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - | TargetFile: /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/results/8.OT8.stdout [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - | ExpectedNumMatches: 1 [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - | SearchStrings: ["java.lang.IllegalAccessException"] [2025-01-11T01:56:31.496Z] STF 17:56:28.603 - | [2025-01-11T01:56:31.496Z] STF 17:56:28.604 - Found 1 instances of ["java.lang.IllegalAccessException"] [2025-01-11T01:56:31.496Z] STF 17:56:28.604 - EXECUTE stage completed [2025-01-11T01:56:31.496Z] STF 17:56:28.651 - [2025-01-11T01:56:31.496Z] STF 17:56:28.651 - ==================== T E A R D O W N ==================== [2025-01-11T01:56:31.496Z] STF 17:56:28.651 - Running teardown: perl /Users/admin/workspace/workspace/Test_openjdk17_hs_sanity.system_x86-64_mac_testList_2/aqa-tests/TKG/../TKG/output_17365594027344/PatMod_Adv_0/20250110-175622-PatModTest/tearDown.pl [2025-01-11T01:56:31.496Z] STF 17:56:28.841 - TEARDOWN stage completed [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - ===================== R E S U L T S ===================== [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - Stage results: [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - setUp: pass [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - execute: pass [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - teardown: pass [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - [2025-01-11T01:56:31.496Z] STF 17:56:28.850 - Overall result: PASSED [2025-01-11T01:56:31.496Z] ----------------------------------- [2025-01-11T01:56:31.496Z] PatMod_Adv_0_PASSED [2025-01-11T01:56:31.496Z] ----------------------------------- [2025-01-11T01:56:31.496Z] [2025-01-11T01:56:31.496Z] TEST TEARDOWN: [2025-01-11T01:56:31.496Z] Nothing to be done for teardown. [2025-01-11T01:56:31.923Z] PatMod_Adv_0 Finish Time: Fri Jan 10 17:56:28 2025 Epoch Time (ms): 1736560588918