Skip to content

Commit 48b7a36

Browse files
klemens-morgensternvinniefalco
authored andcommitted
Reporter sets exit-exit when failed.
1 parent ad4b149 commit 48b7a36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/mrdox/Reporter.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ struct Reporter
6666
std::source_location::current())
6767
{
6868
errs(action, " failed: ", std::move(e), " at ", loc);
69+
failed_ = true;
6970
}
7071

7172
/** Report a unit test failure.

source/lib/Reporter.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Reporter::
3131
failed(llvm::Error&& err)
3232
{
3333
errs("error: ", std::move(err));
34+
failed_ = true;
3435
}
3536

3637
llvm::StringRef

0 commit comments

Comments
 (0)