Skip to content

Commit 406b7d5

Browse files
committed
Increase test coverage.
1 parent 6be71ed commit 406b7d5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

unittests/CppInterOp/FunctionReflectionTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,10 @@ TEST(FunctionReflectionTest, JitCallAdvanced) {
14411441
#endif
14421442
if (llvm::sys::RunningOnValgrind())
14431443
GTEST_SKIP() << "XFAIL due to Valgrind report";
1444+
1445+
Cpp::JitCall JC;
1446+
EXPECT_TRUE(JC.getKind() == Cpp::JitCall::kUnknown);
1447+
14441448
std::vector<Decl*> Decls;
14451449
std::string code = R"(
14461450
typedef struct _name {

unittests/CppInterOp/InterpreterTest.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ TEST(InterpreterTest, DetectSystemCompilerIncludePaths) {
221221
EXPECT_FALSE(includes.empty());
222222
}
223223

224-
TEST(InterpreterTest, GetIncludePaths) {
224+
TEST(InterpreterTest, IncludePaths) {
225225
std::vector<std::string> includes;
226226
Cpp::GetIncludePaths(includes);
227227
EXPECT_FALSE(includes.empty());
@@ -237,6 +237,11 @@ TEST(InterpreterTest, GetIncludePaths) {
237237
Cpp::GetIncludePaths(includes, true, true);
238238
EXPECT_FALSE(includes.empty());
239239
EXPECT_TRUE(includes.size() >= len);
240+
241+
len = includes.size();
242+
Cpp::AddIncludePath("/non/existent/");
243+
Cpp::GetIncludePaths(includes);
244+
EXPECT_TRUE(includes.size() == len + 1);
240245
}
241246

242247
TEST(InterpreterTest, CodeCompletion) {

0 commit comments

Comments
 (0)