Skip to content

Commit

Permalink
8338884: Test BasicFileAttributeView/CreationTime.java#tmp fails on a…
Browse files Browse the repository at this point in the history
…linux3 after JDK-8338696
  • Loading branch information
sendaoYan committed Aug 23, 2024
1 parent ea33709 commit 128e686
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 128e686

Please sign in to comment.