Skip to content

Commit d7f4647

Browse files
Abhinav Kumaranutosh491
authored andcommitted
test coverage
1 parent 558173a commit d7f4647

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ TEST(FunctionReflectionTest, UndoTest) {
15291529
testing::internal::CaptureStderr();
15301530
Cpp::Process("int y = x;");
15311531
cerrs = testing::internal::GetCapturedStderr();
1532-
EXPECT_TRUE(strstr(cerrs.c_str(), "error: use of undeclared identifier 'x'") != nullptr);
1532+
EXPECT_TRUE(strstr(cerrs.c_str(), "use of undeclared identifier 'x'") != nullptr);
15331533
testing::internal::CaptureStderr();
15341534
Cpp::Process("int x = 10;");
15351535
cerrs = testing::internal::GetCapturedStderr();
@@ -1547,4 +1547,11 @@ TEST(FunctionReflectionTest, UndoTest) {
15471547
Cpp::Process("int y = 20;");
15481548
cerrs = testing::internal::GetCapturedStderr();
15491549
EXPECT_STREQ(cerrs.c_str(), "");
1550+
1551+
int ret = Cpp::Undo(100);
1552+
#if defined(CPPINTEROP_USE_CLING)
1553+
EXPECT_EQ(ret, 0);
1554+
#else
1555+
EXPECT_EQ(ret, 1);
1556+
#endif
15501557
}

0 commit comments

Comments
 (0)