From 22eb33263a03d634b4ed4d0b210bacc2793fbe1c Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Tue, 21 Jun 2016 14:38:12 +0000 Subject: Fixed two Bazel java tests on Windows by using the right native file system Newly passing: //src/test/java/com/google/devtools/build/... lib/skyframe:SkyframeTests lib:actions_test Also refactored FileSystems.java -- Change-Id: I03ab9db5c1ab5e5be4ff1efbc5cf2d280084254a Reviewed-on: https://bazel-review.googlesource.com/#/c/3843 MOS_MIGRATED_REVID=125449456 --- src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java') diff --git a/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java b/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java index cd174c62f8..2be505548a 100644 --- a/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java +++ b/src/test/java/com/google/devtools/build/lib/vfs/UnixPathTest.java @@ -53,7 +53,7 @@ public class UnixPathTest { private File tmpDir; protected FileSystem getUnixFileSystem() { - return FileSystems.initDefaultAsNative(); + return FileSystems.getNativeFileSystem(); } @Before -- cgit v1.2.3