< prev index next >
test/jdk/java/nio/channels/FileChannel/directio/DirectIOTest.java
Print this page
rev 59105 : imported patch corelibs
@@ -23,12 +23,11 @@
/*
* @test
* @bug 8164900
* @summary Test for ExtendedOpenOption.DIRECT flag
- * @requires (os.family == "linux" | os.family == "solaris"
- * | os.family == "aix")
+ * @requires (os.family == "linux" | os.family == "aix")
* @library /test/lib
* @build jdk.test.lib.Platform
* @run main/native DirectIOTest
*/
@@ -78,21 +77,11 @@
return Files.createTempFile(
Paths.get(System.getProperty("test.dir", ".")), "test", null);
}
public static boolean isDirectIOSupportedByFS(Path p) throws Exception {
- boolean supported = true;
- if (Platform.isSolaris()) {
- String fsType = Files.getFileStore(p).type();
- if (!fsType.equals("nfs") && !fsType.equals("ufs")) {
- // print a message and return without failing
- System.out.format("Skipping test: file system type %s of "
- + "FileStore of %s is neither nfs nor ufs.%n", fsType, p);
- supported = false;
- }
- }
- return supported;
+ return true;
}
private static boolean isFileInCache(Path p) {
String path = p.toString();
return isFileInCache0(SIZE, path);
< prev index next >