diff --git a/unittests/CppInterOp/CMakeLists.txt b/unittests/CppInterOp/CMakeLists.txt index 1665110cb..a52471578 100644 --- a/unittests/CppInterOp/CMakeLists.txt +++ b/unittests/CppInterOp/CMakeLists.txt @@ -10,9 +10,9 @@ else() endif() add_cppinterop_unittest(CppInterOpTests - EnumReflectionTest.cpp - FunctionReflectionTest.cpp InterpreterTest.cpp + FunctionReflectionTest.cpp + EnumReflectionTest.cpp JitTest.cpp ScopeReflectionTest.cpp TypeReflectionTest.cpp diff --git a/unittests/CppInterOp/InterpreterTest.cpp b/unittests/CppInterOp/InterpreterTest.cpp index 71e1ca991..6c1c21b44 100644 --- a/unittests/CppInterOp/InterpreterTest.cpp +++ b/unittests/CppInterOp/InterpreterTest.cpp @@ -59,9 +59,6 @@ TEST(InterpreterTest, DebugFlag) { } TEST(InterpreterTest, Evaluate) { -#ifdef EMSCRIPTEN - GTEST_SKIP() << "Test fails for Emscipten builds"; -#endif #ifdef _WIN32 GTEST_SKIP() << "Disabled on Windows. Needs fixing."; #endif @@ -71,6 +68,7 @@ TEST(InterpreterTest, Evaluate) { //EXPECT_TRUE(Cpp::Evaluate(I, "__cplusplus;") == 201402); // Due to a deficiency in the clang-repl implementation to get the value we // always must omit the ; + Cpp::CreateInterpreter(); EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 201402); bool HadError;