Skip to content

Commit 2c15beb

Browse files
committed
unittests: add a more verbose error message
This test was failing for me locally due to a path configuration issue. Add an indication which option is missing.
1 parent d350a05 commit 2c15beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/DependencyScan/Features.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ testHasOption(llvm::opt::OptTable &table, options::ID id,
3030
if (strlen(name) > 0) {
3131
auto nameStr = std::string(name);
3232
bool setContainsOption = optionSet.find(nameStr) != optionSet.end();
33-
EXPECT_EQ(setContainsOption, true);
33+
EXPECT_EQ(setContainsOption, true) << "Missing Option: " << nameStr;
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)