Skip to content

Commit 77489d7

Browse files
kr-2003anutosh491
authored andcommitted
removed test for windows
1 parent 2ace298 commit 77489d7

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,26 +1617,28 @@ TEST(FunctionReflectionTest, Destruct) {
16171617
}
16181618

16191619
TEST(FunctionReflectionTest, UndoTest) {
1620-
#ifdef EMSCRIPTEN
1621-
GTEST_SKIP()
1622-
<< "Test fails for Emscipten builds";
1623-
#else
1624-
Cpp::CreateInterpreter();
1625-
EXPECT_EQ(Cpp::Process("int a = 5;"), 0);
1626-
EXPECT_EQ(Cpp::Process("int b = 10;"), 0);
1627-
EXPECT_EQ(Cpp::Process("int x = 5;"), 0);
1628-
Cpp::Undo();
1629-
EXPECT_NE(Cpp::Process("int y = x;"), 0);
1630-
EXPECT_EQ(Cpp::Process("int x = 10;"), 0);
1631-
EXPECT_EQ(Cpp::Process("int y = 10;"), 0);
1632-
Cpp::Undo(2);
1633-
EXPECT_EQ(Cpp::Process("int x = 20;"), 0);
1634-
EXPECT_EQ(Cpp::Process("int y = 20;"), 0);
1635-
int ret = Cpp::Undo(100);
1636-
#ifdef CPPINTEROP_USE_CLING
1637-
EXPECT_EQ(ret, 0);
1638-
#else
1639-
EXPECT_EQ(ret, 1);
1640-
#endif
1641-
#endif
1620+
#ifdef _WIN32
1621+
GTEST_SKIP() << "Disabled on Windows. Needs fixing.";
1622+
#endif
1623+
#ifdef EMSCRIPTEN
1624+
GTEST_SKIP() << "Test fails for Emscipten builds";
1625+
#else
1626+
Cpp::CreateInterpreter();
1627+
EXPECT_EQ(Cpp::Process("int a = 5;"), 0);
1628+
EXPECT_EQ(Cpp::Process("int b = 10;"), 0);
1629+
EXPECT_EQ(Cpp::Process("int x = 5;"), 0);
1630+
Cpp::Undo();
1631+
EXPECT_NE(Cpp::Process("int y = x;"), 0);
1632+
EXPECT_EQ(Cpp::Process("int x = 10;"), 0);
1633+
EXPECT_EQ(Cpp::Process("int y = 10;"), 0);
1634+
Cpp::Undo(2);
1635+
EXPECT_EQ(Cpp::Process("int x = 20;"), 0);
1636+
EXPECT_EQ(Cpp::Process("int y = 20;"), 0);
1637+
int ret = Cpp::Undo(100);
1638+
#ifdef CPPINTEROP_USE_CLING
1639+
EXPECT_EQ(ret, 0);
1640+
#else
1641+
EXPECT_EQ(ret, 1);
1642+
#endif
1643+
#endif
16421644
}

0 commit comments

Comments
 (0)