mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
Exit early if unit tests fail
This commit is contained in:
parent
b8e7a5bcb3
commit
ef4af128fc
@ -430,7 +430,7 @@ int main(int argc, char** argv) {
|
|||||||
doctest::Context context;
|
doctest::Context context;
|
||||||
context.applyCommandLine(argc, argv);
|
context.applyCommandLine(argc, argv);
|
||||||
int res = context.run();
|
int res = context.run();
|
||||||
if (context.shouldExit())
|
if (res != 0 || context.shouldExit())
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user