Skip to content

Commit ca386a9

Browse files
Abhinav Kumarmcbarton
authored andcommitted
test coverage
1 parent d74e377 commit ca386a9

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
@@ -1532,7 +1532,7 @@ TEST(FunctionReflectionTest, UndoTest) {
15321532
testing::internal::CaptureStderr();
15331533
Cpp::Process("int y = x;");
15341534
cerrs = testing::internal::GetCapturedStderr();
1535-
EXPECT_TRUE(strstr(cerrs.c_str(), "error: use of undeclared identifier 'x'") != nullptr);
1535+
EXPECT_TRUE(strstr(cerrs.c_str(), "use of undeclared identifier 'x'") != nullptr);
15361536
testing::internal::CaptureStderr();
15371537
Cpp::Process("int x = 10;");
15381538
cerrs = testing::internal::GetCapturedStderr();
@@ -1550,4 +1550,11 @@ TEST(FunctionReflectionTest, UndoTest) {
15501550
Cpp::Process("int y = 20;");
15511551
cerrs = testing::internal::GetCapturedStderr();
15521552
EXPECT_STREQ(cerrs.c_str(), "");
1553+
1554+
int ret = Cpp::Undo(100);
1555+
#if defined(CPPINTEROP_USE_CLING)
1556+
EXPECT_EQ(ret, 0);
1557+
#else
1558+
EXPECT_EQ(ret, 1);
1559+
#endif
15531560
}

0 commit comments

Comments
 (0)