diff options
Diffstat (limited to 'src/msvc_helper_test.cc')
-rw-r--r-- | src/msvc_helper_test.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/msvc_helper_test.cc b/src/msvc_helper_test.cc index 9eb3c89..8db4c69 100644 --- a/src/msvc_helper_test.cc +++ b/src/msvc_helper_test.cc @@ -30,3 +30,13 @@ TEST(MSVCHelperTest, ShowIncludes) { CLWrapper::FilterShowIncludes("Note: including file: " "c:\\initspaces.h")); } + +TEST(MSVCHelperTest, Run) { + CLWrapper cl; + string output; + cl.Run("cmd /c \"echo foo&& echo Note: including file: foo.h&&echo bar\"", + &output); + ASSERT_EQ("foo\nbar\n", output); + ASSERT_EQ(1u, cl.includes_.size()); + ASSERT_EQ("foo.h", cl.includes_[0]); +} |