File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ public class TestPosix {
104
104
// misc
105
105
private static final CopyOption [] COPY_ATTRIBUTES = {StandardCopyOption .COPY_ATTRIBUTES };
106
106
private static final Map <String , ZipFileEntryInfo > ENTRIES = new HashMap <>();
107
+ private static final boolean isWindows = System .getProperty ("os.name" ) .startsWith ("Windows" );
107
108
108
109
private int entriesCreated ;
109
110
@@ -741,6 +742,10 @@ public void setPermissionsShouldPreserveRemainingBits() throws IOException {
741
742
*/
742
743
@ Test
743
744
public void setPermissionsShouldConvertToUnix () throws IOException {
745
+ // Temporarily skip test on Windows until intermittent failures are investigated
746
+ if (isWindows ) {
747
+ return ;
748
+ }
744
749
// The default environment creates MS-DOS entries, with zero 'external file attributes'
745
750
createEmptyZipFile (ZIP_FILE , ENV_DEFAULT );
746
751
try (FileSystem fs = FileSystems .newFileSystem (ZIP_FILE , ENV_DEFAULT )) {
Original file line number Diff line number Diff line change 4
4
permission java.util.PropertyPermission "test.jdk","read";
5
5
permission java.util.PropertyPermission "test.src","read";
6
6
permission java.util.PropertyPermission "user.dir","read";
7
+ permission java.util.PropertyPermission "os.name","read";
7
8
permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.module";
8
9
permission java.lang.RuntimePermission "accessUserInformation";
9
10
};
You can’t perform that action at this time.
0 commit comments