mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-07 19:15:44 +00:00
8353299: VerifyJarEntryName.java test fails
Reviewed-by: mullan
This commit is contained in:
parent
5eee32d04b
commit
acd4da49a0
@ -95,22 +95,6 @@ public class VerifyJarEntryName {
|
||||
.shouldHaveExitValue(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Modify a single byte in signature filename in LOC, and
|
||||
* validate that jarsigner -verify emits a warning message.
|
||||
*/
|
||||
@Test
|
||||
void verifySignatureEntryName() throws Exception {
|
||||
modifyJarEntryName(ORIGINAL_JAR, MODIFIED_JAR, "MYKEY.SF");
|
||||
SecurityTools.jarsigner("-verify -verbose " + MODIFIED_JAR)
|
||||
.shouldContain("This JAR file contains internal " +
|
||||
"inconsistencies that may result in different " +
|
||||
"contents when reading via JarFile and JarInputStream:")
|
||||
.shouldContain("- Entry XETA-INF/MYKEY.SF is present when reading " +
|
||||
"via JarInputStream but missing when reading via JarFile")
|
||||
.shouldHaveExitValue(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Validate that jarsigner -verify on a valid JAR works without
|
||||
* emitting warnings about internal inconsistencies.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user