Skip to content

Commit 9d07804

Browse files
Abhinav KumarAbhinav Kumar
authored andcommitted
test coverage
1 parent 87114a5 commit 9d07804

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
@@ -1263,7 +1263,7 @@ TEST(FunctionReflectionTest, UndoTest) {
12631263
testing::internal::CaptureStderr();
12641264
Cpp::Process("int y = x;");
12651265
cerrs = testing::internal::GetCapturedStderr();
1266-
EXPECT_TRUE(strstr(cerrs.c_str(), "error: use of undeclared identifier 'x'") != nullptr);
1266+
EXPECT_TRUE(strstr(cerrs.c_str(), "use of undeclared identifier 'x'") != nullptr);
12671267
testing::internal::CaptureStderr();
12681268
Cpp::Process("int x = 10;");
12691269
cerrs = testing::internal::GetCapturedStderr();
@@ -1281,4 +1281,11 @@ TEST(FunctionReflectionTest, UndoTest) {
12811281
Cpp::Process("int y = 20;");
12821282
cerrs = testing::internal::GetCapturedStderr();
12831283
EXPECT_STREQ(cerrs.c_str(), "");
1284+
1285+
int ret = Cpp::Undo(100);
1286+
#if defined(CPPINTEROP_USE_CLING)
1287+
EXPECT_EQ(ret, 0);
1288+
#else
1289+
EXPECT_EQ(ret, 1);
1290+
#endif
12841291
}

0 commit comments

Comments
 (0)