Skip to content

Commit 1161e3c

Browse files
committed
Fix Evaluate tests for emscripten build
1 parent 98a57b4 commit 1161e3c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ TEST(InterpreterTest, DebugFlag) {
5959
}
6060

6161
TEST(InterpreterTest, Evaluate) {
62-
#ifdef EMSCRIPTEN
63-
GTEST_SKIP() << "Test fails for Emscipten builds";
64-
#endif
6562
#ifdef _WIN32
6663
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
6764
#endif
@@ -71,6 +68,7 @@ TEST(InterpreterTest, Evaluate) {
7168
//EXPECT_TRUE(Cpp::Evaluate(I, "__cplusplus;") == 201402);
7269
// Due to a deficiency in the clang-repl implementation to get the value we
7370
// always must omit the ;
71+
Cpp::CreateInterpreter();
7472
EXPECT_TRUE(Cpp::Evaluate("__cplusplus") == 201402);
7573

7674
bool HadError;

0 commit comments

Comments
 (0)