diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2015-06-03 13:50:05 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-06-03 13:52:04 +0000 |
commit | 2464526d5632ef33e3660110a36dbd618e448062 (patch) | |
tree | 87d0e3061cf042438e11d12b7fd98efacf3cbd24 /src/test/java/com/google/devtools/build/lib | |
parent | d07eced71c0972817d065b2db92af2fe47e39bae (diff) |
Ignore relative entries in SearchPath.
--
MOS_MIGRATED_REVID=95102460
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/vfs/SearchPathTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/vfs/SearchPathTest.java b/src/test/java/com/google/devtools/build/lib/vfs/SearchPathTest.java index 3078204b12..292ec10b18 100644 --- a/src/test/java/com/google/devtools/build/lib/vfs/SearchPathTest.java +++ b/src/test/java/com/google/devtools/build/lib/vfs/SearchPathTest.java @@ -38,6 +38,7 @@ public class SearchPathTest { fs.getPath("/bin").createDirectory(); List<Path> searchPath = ImmutableList.of(fs.getPath("/"), fs.getPath("/bin")); assertThat(SearchPath.parse(fs, "/:/bin")).isEqualTo(searchPath); + assertThat(SearchPath.parse(fs, ".:/:/bin")).isEqualTo(searchPath); fs.getOutputStream(fs.getPath("/bin/exe")).write(new byte[5]); |