From f5f7b56d46db788c46f2a04ed1a1550efdd58486 Mon Sep 17 00:00:00 2001 From: Smit1603 Date: Fri, 6 Oct 2023 12:17:29 +0530 Subject: [PATCH] Building and testing cling tests on osx --- .github/workflows/ci.yml | 7 +++++++ unittests/CppInterOp/InterpreterTest.cpp | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95b140cc3..d41b0e5ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,13 @@ jobs: cling: Off cppyy: Off + - name: osx-clang-clang13-cling + os: macos-latest + compiler: clang + clang-runtime: '13' + cling: On + cppyy: Off + steps: - uses: actions/checkout@v3 with: diff --git a/unittests/CppInterOp/InterpreterTest.cpp b/unittests/CppInterOp/InterpreterTest.cpp index e64ffa592..1ac32ff2c 100644 --- a/unittests/CppInterOp/InterpreterTest.cpp +++ b/unittests/CppInterOp/InterpreterTest.cpp @@ -45,7 +45,11 @@ TEST(InterpreterTest, Evaluate) { EXPECT_FALSE(HadError) ; } -TEST(InterpreterTest, Process) { +#ifdef __APPLE__ //Fails for Cling Tests +TEST(InterpreterTest, DISABLED_Process) { +#else +TEST(InterpreterTest, Process) { +#endif Cpp::CreateInterpreter(); EXPECT_TRUE(Cpp::Process("") == 0); EXPECT_TRUE(Cpp::Process("int a = 12;") == 0);