Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Unit tests fail when MS compatible AST is used #413

Closed martong closed 6 years ago

martong commented 6 years ago

This is will block some changes to be upstreamed.

 INSTANTIATE_TEST_CASE_P(ParameterizedTests, ASTImporterTestBase,
     // FIXME we have failing tests with "-fms-compatibility"
-    ::testing::Values(ArgVector(), ArgVector{"-fdelayed-template-parsing"}),);
+    //::testing::Values(ArgVector(), ArgVector{"-fdelayed-template-parsing"}),);
+                        DefaultTestValuesForRunOptions, );
[  PASSED  ] 943 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] ParameterizedTests/ASTImporterTestBase.ImportDefinitionOfClassIfThereIsAnExistingFwdDeclAndDefinition/2, where GetParam() = { "-fms-compatibility" }
[  FAILED  ] ParameterizedTests/ASTImporterTestBase.ImportDefinitionOfClassIfThereIsAnExistingFwdDeclAndDefinition/3, where GetParam() = { "-fdelayed-template-parsing", "-fms-compatibility" }