mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 11:39:00 +02:00
gcc/linux compile/tests
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "CppUnit/TestResult.h"
|
||||
#include "CppUnit/estring.h"
|
||||
#include <typeinfo>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using namespace std;
|
||||
@@ -94,12 +95,18 @@ void TestCase::assertNull(const void* pointer, const std::string& pointerExpress
|
||||
}
|
||||
|
||||
|
||||
void TestCase::fail (const std::string& message, long lineNumber, const std::string& fileName)
|
||||
void TestCase::fail(const std::string& message, long lineNumber, const std::string& fileName)
|
||||
{
|
||||
throw CppUnitException(std::string("fail: ") + message, lineNumber, fileName);
|
||||
}
|
||||
|
||||
|
||||
void TestCase::warn(const std::string& message, long lineNumber, const std::string& fileName)
|
||||
{
|
||||
std::cout << "Warning [" << fileName << ':' << lineNumber << "]: " << message << std::endl;
|
||||
}
|
||||
|
||||
|
||||
// Run the test and catch any exceptions that are triggered by it
|
||||
void TestCase::run(TestResult *result)
|
||||
{
|
||||
|
Reference in New Issue
Block a user