8026362: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on windows, jtreg report Fail to org.testng.SkipException
authorhenryjen
Mon, 14 Oct 2013 17:27:20 -0700
changeset 20788 a8a30ee0732d
parent 20787 ab071ce90368
child 20789 22313c5bcf4d
8026362: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on windows, jtreg report Fail to org.testng.SkipException Reviewed-by: chegar
jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java
--- a/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java	Mon Oct 14 22:09:15 2013 +0100
+++ b/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java	Mon Oct 14 17:27:20 2013 -0700
@@ -167,8 +167,12 @@
     public void testDumpDirNotWritable() throws IOException {
         if (! Files.getFileStore(Paths.get("."))
                    .supportsFileAttributeView(PosixFileAttributeView.class)) {
-            // No easy way to setup readonly directory
-            throw new SkipException("Posix not supported");
+            // No easy way to setup readonly directory without POSIX
+            // We would like to skip the test with a cause with
+            //     throw new SkipException("Posix not supported");
+            // but jtreg will report failure so we just pass the test
+            // which we can look at if jtreg changed its behavior
+            return;
         }
 
         Files.createDirectory(Paths.get("readOnly"),