提交 b398883b 编写于 作者: H henryjen

8026362: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on...

8026362: java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on windows, jtreg report Fail to org.testng.SkipException
Reviewed-by: chegar
上级 135c8a01
...@@ -167,8 +167,12 @@ public class LogGeneratedClassesTest extends LUtils { ...@@ -167,8 +167,12 @@ public class LogGeneratedClassesTest extends LUtils {
public void testDumpDirNotWritable() throws IOException { public void testDumpDirNotWritable() throws IOException {
if (! Files.getFileStore(Paths.get(".")) if (! Files.getFileStore(Paths.get("."))
.supportsFileAttributeView(PosixFileAttributeView.class)) { .supportsFileAttributeView(PosixFileAttributeView.class)) {
// No easy way to setup readonly directory // No easy way to setup readonly directory without POSIX
throw new SkipException("Posix not supported"); // 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"), Files.createDirectory(Paths.get("readOnly"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册