mbien commented on code in PR #9178:
URL: https://github.com/apache/netbeans/pull/9178#discussion_r2751213459


##########
platform/masterfs/test/unit/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/StatFilesTest.java:
##########
@@ -49,6 +51,7 @@ public StatFilesTest(String testName) {
 
     @Override
     protected void setUp() throws java.lang.Exception {
+        GraphicsEnvironment.isHeadless(); // may cause file reads in a static 
initializer on linux

Review Comment:
   those tests monitor file IO by counting reads/writes. This calls something 
directly and eagerly which also does file IO. This method would have been 
called later indirectly by unrelated JDK API which would fail the tests - or 
worse - fail tests based on JDK update release or order of execution



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to