test/java/lang/invoke/lambda/LogGeneratedClassesTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Cdiff test/java/lang/invoke/lambda/LogGeneratedClassesTest.java

test/java/lang/invoke/lambda/LogGeneratedClassesTest.java

Print this page

        

*** 173,182 **** --- 173,188 ---- // but jtreg will report failure so we just pass the test // which we can look at if jtreg changed its behavior return; } + if ("root".equals(System.getProperty("user.name"))) { + // Super user can create files in read-only directories (at least on Linux & Solaris). + // The test is not applicable in that case. + return; + } + Files.createDirectory(Paths.get("readOnly"), asFileAttribute(fromString("r-xr-xr-x"))); TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".",
test/java/lang/invoke/lambda/LogGeneratedClassesTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File