Author: martong Date: Mon Sep 23 22:50:02 2019 New Revision: 372688 URL: http://llvm.org/viewvc/llvm-project?rev=372688&view=rev Log: [ASTImporter] 3rd attempt to fix Windows buildbot test errors
Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Modified: cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp?rev=372688&r1=372687&r2=372688&view=diff ============================================================================== --- cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp (original) +++ cfe/trunk/unittests/AST/ASTImporterODRStrategiesTest.cpp Mon Sep 23 22:50:02 2019 @@ -30,9 +30,9 @@ using internal::BindableMatcher; struct Function { using DeclTy = FunctionDecl; - static constexpr auto *Prototype = "void X(char*, char);"; + static constexpr auto *Prototype = "void X(int);"; static constexpr auto *ConflictingPrototype = "void X(double);"; - static constexpr auto *Definition = "void X(char *a, char b) {}"; + static constexpr auto *Definition = "void X(int a) {}"; static constexpr auto *ConflictingDefinition = "void X(double a) {}"; BindableMatcher<Decl> getPattern() { return functionDecl(hasName("X"), unless(isImplicit())); @@ -582,7 +582,8 @@ ASTIMPORTER_ODR_INSTANTIATE_TYPED_TEST_C INSTANTIATE_TEST_CASE_P( ODRViolationTests, FunctionConservative, - DefaultTestValuesForRunOptions, ); +// These tests fail on Windows. + ::testing::Values(ArgVector{"-target", "x86_64-pc-linux-gnu"}), ); INSTANTIATE_TEST_CASE_P( ODRViolationTests, TypedefConservative, DefaultTestValuesForRunOptions, ); @@ -624,7 +625,8 @@ INSTANTIATE_TEST_CASE_P( INSTANTIATE_TEST_CASE_P( ODRViolationTests, FunctionLiberal, - DefaultTestValuesForRunOptions, ); +// These tests fail on Windows. + ::testing::Values(ArgVector{"-target", "x86_64-pc-linux-gnu"}), ); INSTANTIATE_TEST_CASE_P( ODRViolationTests, TypedefLiberal, DefaultTestValuesForRunOptions, ); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits