- 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:
Paul Beckingham 2014-04-05 10:39:38 -04:00
parent 325d0d1738
commit 5965a85151
3 changed files with 9 additions and 2 deletions

View file

@ -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);
}
///////////////////////////////////////////////////////////////////////////////