diff options
author | Scott Graham <scottmg@chromium.org> | 2012-09-20 00:15:55 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2012-09-20 00:15:55 (GMT) |
commit | 21046b4a3e153754ab8f632c0b65ec1c61f7b828 (patch) | |
tree | ad3dc3b0af97b76c42579533f966b6f8fb783aa8 /src/msvc_helper_test.cc | |
parent | e6c8bd91c22b64374aa7a1c84ae0a462f4fe2896 (diff) | |
download | Ninja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.zip Ninja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.tar.gz Ninja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.tar.bz2 |
fix spaces in headers for -t msvc
Diffstat (limited to 'src/msvc_helper_test.cc')
-rw-r--r-- | src/msvc_helper_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/msvc_helper_test.cc b/src/msvc_helper_test.cc index 85ac039..7730425 100644 --- a/src/msvc_helper_test.cc +++ b/src/msvc_helper_test.cc @@ -105,3 +105,14 @@ TEST(MSVCHelperTest, DuplicatedHeaderPathConverted) { ASSERT_EQ("", output); ASSERT_EQ(2u, cl.includes_.size()); } + +TEST(MSVCHelperTest, SpacesInFilename) { + CLWrapper cl; + string output; + cl.Run("cmd /c \"echo Note: including file: sub\\some sdk\\foo.h", + &output); + ASSERT_EQ("", output); + vector<string> headers = cl.GetEscapedResult(); + ASSERT_EQ(1u, headers.size()); + ASSERT_EQ("sub\\some\\ sdk\\foo.h", headers[0]); +} |