diff --git a/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java b/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java index ad85da7ae63b1..684f3f25662e8 100644 --- a/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java +++ b/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java @@ -108,6 +108,10 @@ static void test(Path top) throws IOException { } else if (Platform.isLinux()) { // Creation time read depends on statx system call support supportsCreationTimeRead = Linker.nativeLinker().defaultLookup().find("statx").isPresent(); + // Linux system doesn't support birth time on tmpfs filesystem for now + if( Files.getFileStore(file).type().contentEquals("tmpfs") ) { + supportsCreationTimeRead = false; + } // Creation time updates are not supported on Linux supportsCreationTimeWrite = false; }