optimized unit tests

This commit is contained in:
Arvid Norberg
2009-04-10 08:40:13 +00:00
parent efbb3a5861
commit bc9e58962b
7 changed files with 41 additions and 29 deletions

View File

@@ -35,13 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
int test_main();
bool tests_failure = false;
void report_failure(char const* err, char const* file, int line)
{
std::cerr << "\033[31m" << file << ":" << line << " \"" << err << "\"\033[0m\n";
tests_failure = true;
}
extern bool tests_failure;
int main()
{