This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG4191d661c746: [clang-repl] Disable execution unittests on unsupported platforms. (authored by sunho). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130786/new/ https://reviews.llvm.org/D130786 Files: clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp clang/unittests/Interpreter/InterpreterTest.cpp Index: clang/unittests/Interpreter/InterpreterTest.cpp =================================================================== --- clang/unittests/Interpreter/InterpreterTest.cpp +++ clang/unittests/Interpreter/InterpreterTest.cpp @@ -28,6 +28,12 @@ using namespace clang; +#if defined(_AIX) || defined(__hexagon__) || \ + (defined(_WIN32) && \ + (defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__))) +#define CLANG_INTERPRETER_NO_SUPPORT_EXEC +#endif + namespace { using Args = std::vector<const char *>; static std::unique_ptr<Interpreter> @@ -191,7 +197,7 @@ ~LLVMInitRAII() { llvm::llvm_shutdown(); } } LLVMInit; -#ifdef _AIX +#ifdef CLANG_INTERPRETER_NO_SUPPORT_EXEC TEST(IncrementalProcessing, DISABLED_FindMangledNameSymbol) { #else TEST(IncrementalProcessing, FindMangledNameSymbol) { @@ -253,7 +259,7 @@ return R.getFoundDecl(); } -#ifdef _AIX +#ifdef CLANG_INTERPRETER_NO_SUPPORT_EXEC TEST(IncrementalProcessing, DISABLED_InstantiateTemplate) { #else TEST(IncrementalProcessing, InstantiateTemplate) { Index: clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp =================================================================== --- clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp +++ clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp @@ -46,6 +46,7 @@ } TEST(InterpreterTest, CatchException) { + llvm::llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. llvm::InitializeNativeTarget(); llvm::InitializeNativeTargetAsmPrinter(); @@ -130,8 +131,6 @@ EXPECT_ANY_THROW(ThrowException()); std::string CapturedStdOut = testing::internal::GetCapturedStdout(); EXPECT_EQ(CapturedStdOut, "Caught: 'To be caught in JIT'\n"); - - llvm::llvm_shutdown(); } } // end anonymous namespace
Index: clang/unittests/Interpreter/InterpreterTest.cpp =================================================================== --- clang/unittests/Interpreter/InterpreterTest.cpp +++ clang/unittests/Interpreter/InterpreterTest.cpp @@ -28,6 +28,12 @@ using namespace clang; +#if defined(_AIX) || defined(__hexagon__) || \ + (defined(_WIN32) && \ + (defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__))) +#define CLANG_INTERPRETER_NO_SUPPORT_EXEC +#endif + namespace { using Args = std::vector<const char *>; static std::unique_ptr<Interpreter> @@ -191,7 +197,7 @@ ~LLVMInitRAII() { llvm::llvm_shutdown(); } } LLVMInit; -#ifdef _AIX +#ifdef CLANG_INTERPRETER_NO_SUPPORT_EXEC TEST(IncrementalProcessing, DISABLED_FindMangledNameSymbol) { #else TEST(IncrementalProcessing, FindMangledNameSymbol) { @@ -253,7 +259,7 @@ return R.getFoundDecl(); } -#ifdef _AIX +#ifdef CLANG_INTERPRETER_NO_SUPPORT_EXEC TEST(IncrementalProcessing, DISABLED_InstantiateTemplate) { #else TEST(IncrementalProcessing, InstantiateTemplate) { Index: clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp =================================================================== --- clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp +++ clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp @@ -46,6 +46,7 @@ } TEST(InterpreterTest, CatchException) { + llvm::llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. llvm::InitializeNativeTarget(); llvm::InitializeNativeTargetAsmPrinter(); @@ -130,8 +131,6 @@ EXPECT_ANY_THROW(ThrowException()); std::string CapturedStdOut = testing::internal::GetCapturedStdout(); EXPECT_EQ(CapturedStdOut, "Caught: 'To be caught in JIT'\n"); - - llvm::llvm_shutdown(); } } // end anonymous namespace
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits