mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 00:43:07 +02:00
- Bug TW-1296
- TW-1296 make test/run_all exit with non-zero code if a test fail (thanks to Jakub Wilk).
This commit is contained in:
parent
325d0d1738
commit
5965a85151
3 changed files with 9 additions and 2 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <iomanip>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <test.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -84,6 +85,7 @@ UnitTest::~UnitTest ()
|
|||
<< " skipped. "
|
||||
<< std::setprecision (3) << percentPassed
|
||||
<< "% passed.\n";
|
||||
exit (_failed > 0);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue