< prev index next >

test/jdk/java/nio/channels/FileChannel/directio/DirectIOTest.java

Print this page
rev 59105 : imported patch corelibs

*** 23,34 **** /* * @test * @bug 8164900 * @summary Test for ExtendedOpenOption.DIRECT flag ! * @requires (os.family == "linux" | os.family == "solaris" ! * | os.family == "aix") * @library /test/lib * @build jdk.test.lib.Platform * @run main/native DirectIOTest */ --- 23,33 ---- /* * @test * @bug 8164900 * @summary Test for ExtendedOpenOption.DIRECT flag ! * @requires (os.family == "linux" | os.family == "aix") * @library /test/lib * @build jdk.test.lib.Platform * @run main/native DirectIOTest */
*** 78,98 **** 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; } private static boolean isFileInCache(Path p) { String path = p.toString(); return isFileInCache0(SIZE, path); --- 77,87 ---- return Files.createTempFile( Paths.get(System.getProperty("test.dir", ".")), "test", null); } public static boolean isDirectIOSupportedByFS(Path p) throws Exception { ! return true; } private static boolean isFileInCache(Path p) { String path = p.toString(); return isFileInCache0(SIZE, path);
< prev index next >