Tests are run in tier2:
tools/jar/MultipleManifestTest.java
----------System.out:(22/777)*----------
*****Creating Jar with the Manifest as the 1st, 2nd and 4th entry*****
jar xvf MultipleManifestTest.jar
extracting to directory: C:\\sb\\prod\\1729737780\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\1
inflated: META-INF/MANIFEST.MF
inflated: META-INF/MANIFEST.MF
inflated: entry1.txt
inflated: META-INF/MANIFEST.MF
inflated: entry2.txt
rm -rf META-INF entry1.txt entry2.txt
jar xkvf MultipleManifestTest.jar
extracting to directory: C:\\sb\\prod\\1729737780\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\1
inflated: META-INF/MANIFEST.MF
skipped: META-INF/MANIFEST.MF exists
inflated: entry1.txt
skipped: META-INF/MANIFEST.MF exists
inflated: entry2.txt
rm -rf META-INF entry1.txt entry2.txt
----------System.err:(46/3269)----------
STARTED MultipleManifestTest::testOverwrite 'testOverwrite()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <259> but was: <145>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at MultipleManifestTest.testOverwrite(MultipleManifestTest.java:157)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED MultipleManifestTest::testOverwrite 'testOverwrite()'
STARTED MultipleManifestTest::testKeptOldFile 'testKeptOldFile()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <273> but was: <159>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at MultipleManifestTest.testKeptOldFile(MultipleManifestTest.java:173)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED MultipleManifestTest::testKeptOldFile 'testKeptOldFile()'
JavaTest Message: JUnit Platform Failure(s): 2
tools/jar/ExtractFilesTest.java
----------System.out:(63/2759)----------
mkdir -p test1 test2
echo 'testfile1' > test1/testfile1
echo 'testfile2' > test2/testfile2
jar cf test.jar -C test1 . -C test2 .
rm -rf test1 test2
touch testfile1 testfile2
jar -x -k -v -f test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
skipped: testfile1 exists
skipped: testfile2 exists
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
jar xvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
inflated: testfile2
rm -rf META-INF testfile1 testfile2
touch testfile2
jar -x --keep-old-files -v -f test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
skipped: testfile2 exists
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
jar tkf test.jar
META-INF/
META-INF/MANIFEST.MF
testfile1
testfile2
touch testfile1
jar xvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
inflated: testfile2
cat testfile1
rm -rf META-INF testfile1 testfile2
touch testfile1
jar xkvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
skipped: testfile1 exists
inflated: testfile2
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
rm -rf test.jar
----------System.err:(90/6793)----------
STARTED ExtractFilesTest::testGnuOptionsKeptOldFile 'testGnuOptionsKeptOldFile()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <419> but was: <109>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at ExtractFilesTest.testGnuOptionsKeptOldFile(ExtractFilesTest.java:144)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED ExtractFilesTest::testGnuOptionsKeptOldFile 'testGnuOptionsKeptOldFile()'
STARTED ExtractFilesTest::testExtract 'testExtract()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <405> but was: <95>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at ExtractFilesTest.testExtract(ExtractFilesTest.java:91)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
tools/jar/MultipleManifestTest.java
----------System.out:(22/777)*----------
*****Creating Jar with the Manifest as the 1st, 2nd and 4th entry*****
jar xvf MultipleManifestTest.jar
extracting to directory: C:\\sb\\prod\\1729737780\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\1
inflated: META-INF/MANIFEST.MF
inflated: META-INF/MANIFEST.MF
inflated: entry1.txt
inflated: META-INF/MANIFEST.MF
inflated: entry2.txt
rm -rf META-INF entry1.txt entry2.txt
jar xkvf MultipleManifestTest.jar
extracting to directory: C:\\sb\\prod\\1729737780\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\scratch\\1
inflated: META-INF/MANIFEST.MF
skipped: META-INF/MANIFEST.MF exists
inflated: entry1.txt
skipped: META-INF/MANIFEST.MF exists
inflated: entry2.txt
rm -rf META-INF entry1.txt entry2.txt
----------System.err:(46/3269)----------
STARTED MultipleManifestTest::testOverwrite 'testOverwrite()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <259> but was: <145>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at MultipleManifestTest.testOverwrite(MultipleManifestTest.java:157)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED MultipleManifestTest::testOverwrite 'testOverwrite()'
STARTED MultipleManifestTest::testKeptOldFile 'testKeptOldFile()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <273> but was: <159>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at MultipleManifestTest.testKeptOldFile(MultipleManifestTest.java:173)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED MultipleManifestTest::testKeptOldFile 'testKeptOldFile()'
JavaTest Message: JUnit Platform Failure(s): 2
tools/jar/ExtractFilesTest.java
----------System.out:(63/2759)----------
mkdir -p test1 test2
echo 'testfile1' > test1/testfile1
echo 'testfile2' > test2/testfile2
jar cf test.jar -C test1 . -C test2 .
rm -rf test1 test2
touch testfile1 testfile2
jar -x -k -v -f test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
skipped: testfile1 exists
skipped: testfile2 exists
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
jar xvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
inflated: testfile2
rm -rf META-INF testfile1 testfile2
touch testfile2
jar -x --keep-old-files -v -f test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
skipped: testfile2 exists
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
jar tkf test.jar
META-INF/
META-INF/MANIFEST.MF
testfile1
testfile2
touch testfile1
jar xvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: testfile1
inflated: testfile2
cat testfile1
rm -rf META-INF testfile1 testfile2
touch testfile1
jar xkvf test.jar
extracting to directory: /opt/mach5/mesos/work_dir/slaves/ccd15758-3c17-44a6-a32a-40698b0633d8-S15341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/00162476-346b-4b1f-8470-473a71526771/runs/a4fad45c-a6d0-478f-9957-79c4b82323cf/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/2
created: META-INF/
inflated: META-INF/MANIFEST.MF
skipped: testfile1 exists
inflated: testfile2
cat testfile1
cat testfile2
rm -rf META-INF testfile1 testfile2
rm -rf test.jar
----------System.err:(90/6793)----------
STARTED ExtractFilesTest::testGnuOptionsKeptOldFile 'testGnuOptionsKeptOldFile()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <419> but was: <109>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at ExtractFilesTest.testGnuOptionsKeptOldFile(ExtractFilesTest.java:144)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
FAILED ExtractFilesTest::testGnuOptionsKeptOldFile 'testGnuOptionsKeptOldFile()'
STARTED ExtractFilesTest::testExtract 'testExtract()'
org.opentest4j.AssertionFailedError: array lengths differ, expected: <405> but was: <95>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertArrayEquals.assertArraysHaveSameLength(AssertArrayEquals.java:428)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:205)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:63)
at org.junit.jupiter.api.AssertArrayEquals.assertArrayEquals(AssertArrayEquals.java:59)
at org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1229)
at ExtractFilesTest.testExtract(ExtractFilesTest.java:91)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
- relates to
-
JDK-8335912 Add an operation mode to the jar command when extracting to not overwriting existing files
- Resolved
- links to
-
Commit(master) openjdk/jdk/5cbd578f
-
Review(master) openjdk/jdk/21697