File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
platform/masterfs/test/unit/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1818 */
1919package org .netbeans .modules .masterfs .filebasedfs .fileobjects ;
2020
21+ import java .awt .GraphicsEnvironment ;
2122import java .io .File ;
2223
2324import java .io .IOException ;
2627import java .util .List ;
2728import java .util .Stack ;
2829import org .netbeans .junit .NbTestCase ;
30+ import org .netbeans .junit .RandomlyFails ;
2931import org .netbeans .modules .masterfs .filebasedfs .FileBasedFileSystem ;
3032import org .netbeans .modules .masterfs .filebasedfs .naming .FileNaming ;
3133import org .netbeans .modules .masterfs .filebasedfs .naming .NamingFactory ;
@@ -49,6 +51,7 @@ public StatFilesTest(String testName) {
4951
5052 @ Override
5153 protected void setUp () throws java .lang .Exception {
54+ GraphicsEnvironment .isHeadless (); // may cause file reads in a static initializer on linux
5255 FileObjectFactory .WARNINGS = false ;
5356 clearWorkDir ();
5457 testFile = new File (getWorkDir (), "testLockFile.txt" );
@@ -151,6 +154,7 @@ public void testGetChildrenCaches() throws IOException {
151154 monitor .getResults ().assertResult (1 , StatFiles .READ );
152155 }
153156
157+ @ RandomlyFails // JDK update releases caused failures
154158 public void testLockFile () throws IOException {
155159 FileObject fobj = getFileObject (testFile );
156160 monitor .reset ();
You can’t perform that action at this time.
0 commit comments