Skip to content

Commit bf79253

Browse files
cpovirkGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Skip some tests under Windows that _sometimes_ fail there.
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
1 parent 87867c4 commit bf79253

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guava-tests/test/com/google/common/io/MoreFilesTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ public void testTouchTime() throws IOException {
262262
}
263263

264264
public void testCreateParentDirectories_root() throws IOException {
265+
if (isWindows()) {
266+
return; // TODO: b/136041958 - *Sometimes* fails with "A:\: The device is not ready"
267+
}
265268
Path root = root();
266269
assertNull(root.getParent());
267270
assertNull(root.toRealPath().getParent());
@@ -329,6 +332,9 @@ public void testCreateParentDirectories_nonDirectoryParentExists() throws IOExce
329332
}
330333

331334
public void testCreateParentDirectories_symlinkParentExists() throws IOException {
335+
if (isWindows()) {
336+
return; // TODO: b/136041958 - *Sometimes* fails with FileAlreadyExistsException
337+
}
332338
Path symlink = tempDir.resolve("linkToDir");
333339
Files.createSymbolicLink(symlink, root());
334340
Path file = symlink.resolve("foo");

0 commit comments

Comments
 (0)