@@ -531,7 +531,7 @@ TEST(FunctionReflectionTest, ExistsFunctionTemplate) {
531531}
532532
533533TEST (FunctionReflectionTest, InstantiateTemplateFunctionFromString) {
534- if (RUNNING_ON_VALGRIND )
534+ if (llvm::sys::RunningOnValgrind () )
535535 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
536536 Cpp::CreateInterpreter ();
537537 std::string code = R"( #include <memory>)" ;
@@ -734,7 +734,7 @@ TEST(FunctionReflectionTest, IsStaticMethod) {
734734}
735735
736736TEST (FunctionReflectionTest, GetFunctionAddress) {
737- if (RUNNING_ON_VALGRIND )
737+ if (llvm::sys::RunningOnValgrind () )
738738 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
739739 std::vector<Decl*> Decls, SubDecls;
740740 std::string code = " int f1(int i) { return i * i; }" ;
@@ -775,7 +775,7 @@ TEST(FunctionReflectionTest, IsVirtualMethod) {
775775}
776776
777777TEST (FunctionReflectionTest, JitCallAdvanced) {
778- if (RUNNING_ON_VALGRIND )
778+ if (llvm::sys::RunningOnValgrind () )
779779 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
780780 std::vector<Decl*> Decls;
781781 std::string code = R"(
@@ -799,7 +799,7 @@ TEST(FunctionReflectionTest, JitCallAdvanced) {
799799
800800
801801TEST (FunctionReflectionTest, GetFunctionCallWrapper) {
802- if (RUNNING_ON_VALGRIND )
802+ if (llvm::sys::RunningOnValgrind () )
803803 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
804804 std::vector<Decl*> Decls;
805805 std::string code = R"(
@@ -1010,7 +1010,7 @@ TEST(FunctionReflectionTest, GetFunctionArgDefault) {
10101010}
10111011
10121012TEST (FunctionReflectionTest, Construct) {
1013- if (RUNNING_ON_VALGRIND )
1013+ if (llvm::sys::RunningOnValgrind () )
10141014 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
10151015 Cpp::CreateInterpreter ();
10161016
@@ -1046,7 +1046,7 @@ TEST(FunctionReflectionTest, Construct) {
10461046}
10471047
10481048TEST (FunctionReflectionTest, Destruct) {
1049- if (RUNNING_ON_VALGRIND )
1049+ if (llvm::sys::RunningOnValgrind () )
10501050 GTEST_SKIP () << " XFAIL due to Valgrind report" ;
10511051 Cpp::CreateInterpreter ();
10521052
0 commit comments