11#include " Utils.h"
22
3- #include " llvm/Support/Valgrind.h"
43#include " clang/AST/ASTContext.h"
54#include " clang/Interpreter/CppInterOp.h"
65#include " clang/Frontend/CompilerInstance.h"
@@ -532,7 +531,7 @@ TEST(FunctionReflectionTest, ExistsFunctionTemplate) {
532531}
533532
534533TEST (FunctionReflectionTest, InstantiateTemplateFunctionFromString) {
535- if (llvm::sys::RunningOnValgrind () )
534+ if (RUNNING_ON_VALGRIND )
536535 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
537536 Cpp::CreateInterpreter ();
538537 std::string code = R"( #include <memory>)" ;
@@ -735,7 +734,7 @@ TEST(FunctionReflectionTest, IsStaticMethod) {
735734}
736735
737736TEST (FunctionReflectionTest, GetFunctionAddress) {
738- if (llvm::sys::RunningOnValgrind () )
737+ if (RUNNING_ON_VALGRIND )
739738 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
740739 std::vector<Decl*> Decls, SubDecls;
741740 std::string code = " int f1(int i) { return i * i; }" ;
@@ -776,7 +775,7 @@ TEST(FunctionReflectionTest, IsVirtualMethod) {
776775}
777776
778777TEST (FunctionReflectionTest, JitCallAdvanced) {
779- if (llvm::sys::RunningOnValgrind () )
778+ if (RUNNING_ON_VALGRIND )
780779 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
781780 std::vector<Decl*> Decls;
782781 std::string code = R"(
@@ -800,7 +799,7 @@ TEST(FunctionReflectionTest, JitCallAdvanced) {
800799
801800
802801TEST (FunctionReflectionTest, GetFunctionCallWrapper) {
803- if (llvm::sys::RunningOnValgrind () )
802+ if (RUNNING_ON_VALGRIND )
804803 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
805804 std::vector<Decl*> Decls;
806805 std::string code = R"(
@@ -1011,7 +1010,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) {
10111010}
10121011
10131012TEST (FunctionReflectionTest, Construct) {
1014- if (llvm::sys::RunningOnValgrind () )
1013+ if (RUNNING_ON_VALGRIND )
10151014 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
10161015 Cpp::CreateInterpreter ();
10171016
@@ -1047,7 +1046,7 @@ TEST(FunctionReflectionTest, Construct) {
10471046}
10481047
10491048TEST (FunctionReflectionTest, Destruct) {
1050- if (llvm::sys::RunningOnValgrind () )
1049+ if (RUNNING_ON_VALGRIND )
10511050 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
10521051 Cpp::CreateInterpreter ();
10531052
0 commit comments