Skip to content

Commit

Permalink
Skip some tests under Windows that _sometimes_ fail there.
Browse files Browse the repository at this point in the history
I had reported a failure post-submit on cl/538862954, and I just saw another one while testing cl/542572673.

RELNOTES=n/a
PiperOrigin-RevId: 542608139
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Jun 22, 2023
1 parent 87867c4 commit bf79253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guava-tests/test/com/google/common/io/MoreFilesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ public void testTouchTime() throws IOException {
}

public void testCreateParentDirectories_root() throws IOException {
if (isWindows()) {
return; // TODO: b/136041958 - *Sometimes* fails with "A:\: The device is not ready"
}
Path root = root();
assertNull(root.getParent());
assertNull(root.toRealPath().getParent());
Expand Down Expand Up @@ -329,6 +332,9 @@ public void testCreateParentDirectories_nonDirectoryParentExists() throws IOExce
}

public void testCreateParentDirectories_symlinkParentExists() throws IOException {
if (isWindows()) {
return; // TODO: b/136041958 - *Sometimes* fails with FileAlreadyExistsException
}
Path symlink = tempDir.resolve("linkToDir");
Files.createSymbolicLink(symlink, root());
Path file = symlink.resolve("foo");
Expand Down

0 comments on commit bf79253

Please sign in to comment.