Index: test/msvs/filters/gyptest-filters-2010.py |
diff --git a/test/msvs/filters/gyptest-filters-2010.py b/test/msvs/filters/gyptest-filters-2010.py |
index d8131d5d7bd38e92ef57fb2262c51859a226be05..d01cbeb5cffa7b8cc2cd5819891f90e55f07dfe3 100644 |
--- a/test/msvs/filters/gyptest-filters-2010.py |
+++ b/test/msvs/filters/gyptest-filters-2010.py |
@@ -10,6 +10,7 @@ and later. |
""" |
import TestGyp |
+import os |
test = TestGyp.TestGyp(formats=['msvs']) |
@@ -53,5 +54,18 @@ test.must_contain('nested_folders.vcxproj.filters', '''\ |
</ItemGroup> |
'''.replace('\n', '\r\n')) |
+subdir_gyp = os.path.join('subdir', 'subdir.gyp') |
+test.run_gyp(subdir_gyp, '-G', 'standalone', '-G', 'msvs_version=2010') |
+ |
+test.must_contain(os.path.join('subdir', 'normalize.vcxproj.filters'), '''\ |
+ <ItemGroup> |
+ <ClCompile Include="folder1\\a.c"> |
+ <Filter>folder1</Filter> |
+ </ClCompile> |
+ <ClCompile Include="folder2\\b.c"> |
+ <Filter>folder2</Filter> |
+ </ClCompile> |
+ </ItemGroup> |
+'''.replace('\n', '\r\n')) |
test.pass_test() |