Index: tools/gn/function_get_path_info_unittest.cc |
diff --git a/tools/gn/function_get_path_info_unittest.cc b/tools/gn/function_get_path_info_unittest.cc |
index 855e217accf508b52379003854118564185606fc..306c57e88c134082dc4edca32fe7887b9f6f426b 100644 |
--- a/tools/gn/function_get_path_info_unittest.cc |
+++ b/tools/gn/function_get_path_info_unittest.cc |
@@ -95,8 +95,12 @@ TEST_F(GetPathInfoTest, OutDir) { |
EXPECT_EQ("//out/Debug/obj/src/foo", Call(".", "out_dir")); |
EXPECT_EQ("//out/Debug/obj/src/foo", Call("bar", "out_dir")); |
EXPECT_EQ("//out/Debug/obj/foo", Call("//foo/bar.txt", "out_dir")); |
- // System paths go into the root obj directory. |
- EXPECT_EQ("//out/Debug/obj", Call("/foo/bar.txt", "out_dir")); |
+ // System paths go into the ABS_PATH obj directory. |
+ EXPECT_EQ("//out/Debug/obj/ABS_PATH/foo", Call("/foo/bar.txt", "out_dir")); |
+#if defined(OS_WIN) |
+ EXPECT_EQ("//out/Debug/obj/ABS_PATH/C/foo", |
+ Call("/C:/foo/bar.txt", "out_dir")); |
+#endif |
} |
// Note build dir is "//out/Debug/". |