1
1
#include " Utils.h"
2
2
3
- #include " llvm/Support/Valgrind.h"
4
3
#include " clang/AST/ASTContext.h"
5
4
#include " clang/Interpreter/CppInterOp.h"
6
5
#include " clang/Frontend/CompilerInstance.h"
@@ -532,7 +531,7 @@ TEST(FunctionReflectionTest, ExistsFunctionTemplate) {
532
531
}
533
532
534
533
TEST (FunctionReflectionTest, InstantiateTemplateFunctionFromString) {
535
- if (llvm::sys::RunningOnValgrind () )
534
+ if (RUNNING_ON_VALGRIND )
536
535
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
537
536
Cpp::CreateInterpreter ();
538
537
std::string code = R"( #include <memory>)" ;
@@ -735,7 +734,7 @@ TEST(FunctionReflectionTest, IsStaticMethod) {
735
734
}
736
735
737
736
TEST (FunctionReflectionTest, GetFunctionAddress) {
738
- if (llvm::sys::RunningOnValgrind () )
737
+ if (RUNNING_ON_VALGRIND )
739
738
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
740
739
std::vector<Decl*> Decls, SubDecls;
741
740
std::string code = " int f1(int i) { return i * i; }" ;
@@ -776,7 +775,7 @@ TEST(FunctionReflectionTest, IsVirtualMethod) {
776
775
}
777
776
778
777
TEST (FunctionReflectionTest, JitCallAdvanced) {
779
- if (llvm::sys::RunningOnValgrind () )
778
+ if (RUNNING_ON_VALGRIND )
780
779
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
781
780
std::vector<Decl*> Decls;
782
781
std::string code = R"(
@@ -800,7 +799,7 @@ TEST(FunctionReflectionTest, JitCallAdvanced) {
800
799
801
800
802
801
TEST (FunctionReflectionTest, GetFunctionCallWrapper) {
803
- if (llvm::sys::RunningOnValgrind () )
802
+ if (RUNNING_ON_VALGRIND )
804
803
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
805
804
std::vector<Decl*> Decls;
806
805
std::string code = R"(
@@ -1011,7 +1010,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) {
1011
1010
}
1012
1011
1013
1012
TEST (FunctionReflectionTest, Construct) {
1014
- if (llvm::sys::RunningOnValgrind () )
1013
+ if (RUNNING_ON_VALGRIND )
1015
1014
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
1016
1015
Cpp::CreateInterpreter ();
1017
1016
@@ -1047,7 +1046,7 @@ TEST(FunctionReflectionTest, Construct) {
1047
1046
}
1048
1047
1049
1048
TEST (FunctionReflectionTest, Destruct) {
1050
- if (llvm::sys::RunningOnValgrind () )
1049
+ if (RUNNING_ON_VALGRIND )
1051
1050
GTEST_SKIP () << " XFAIL due to Valgrind report" ;
1052
1051
Cpp::CreateInterpreter ();
1053
1052
0 commit comments