Skip to content

Commit 090f049

Browse files
committed
Add an error message to unit test runner
1 parent 25abbac commit 090f049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/UtilityPasses/UnitTestRunner.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ void UnitTestRunner::withTest(StringRef name, Doit doit) {
411411
/// conflicts.
412412

413413
#undef ADD_UNIT_TEST_SUBCLASS
414+
llvm::errs() << "No test named: " << name << "\n";
415+
assert(false && "Invalid test name");
414416
}
415417

416418

0 commit comments

Comments
 (0)