8325201: (zipfs) Disable TestPosix.setPermissionsShouldConvertToUnix which fails on Windows
Reviewed-by: lancea
This commit is contained in:
parent
ed068469f3
commit
692c9f8821
@ -104,6 +104,7 @@ public class TestPosix {
|
||||
// misc
|
||||
private static final CopyOption[] COPY_ATTRIBUTES = {StandardCopyOption.COPY_ATTRIBUTES};
|
||||
private static final Map<String, ZipFileEntryInfo> ENTRIES = new HashMap<>();
|
||||
private static final boolean isWindows = System.getProperty("os.name") .startsWith("Windows");
|
||||
|
||||
private int entriesCreated;
|
||||
|
||||
@ -741,6 +742,10 @@ public class TestPosix {
|
||||
*/
|
||||
@Test
|
||||
public void setPermissionsShouldConvertToUnix() throws IOException {
|
||||
// Temporarily skip test on Windows until intermittent failures are investigated
|
||||
if(isWindows) {
|
||||
return;
|
||||
}
|
||||
// The default environment creates MS-DOS entries, with zero 'external file attributes'
|
||||
createEmptyZipFile(ZIP_FILE, ENV_DEFAULT);
|
||||
try (FileSystem fs = FileSystems.newFileSystem(ZIP_FILE, ENV_DEFAULT)) {
|
||||
|
@ -4,6 +4,7 @@ grant {
|
||||
permission java.util.PropertyPermission "test.jdk","read";
|
||||
permission java.util.PropertyPermission "test.src","read";
|
||||
permission java.util.PropertyPermission "user.dir","read";
|
||||
permission java.util.PropertyPermission "os.name","read";
|
||||
permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.module";
|
||||
permission java.lang.RuntimePermission "accessUserInformation";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user