remove stdout, print stack trace
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
@license LGPL, see file <a href="license.html">COPYING</a>
|
@license LGPL, see file <a href="license.html">COPYING</a>
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.2 2004/10/13 11:19:22 marc
|
||||||
|
remove stdout, print stack trace
|
||||||
|
|
||||||
Revision 1.1 2004/10/07 09:31:30 marc
|
Revision 1.1 2004/10/07 09:31:30 marc
|
||||||
new feature
|
new feature
|
||||||
|
|
||||||
@@ -22,13 +25,12 @@
|
|||||||
#include <mrw/map.hpp>
|
#include <mrw/map.hpp>
|
||||||
#include <mrw/multiset.hpp>
|
#include <mrw/multiset.hpp>
|
||||||
#include <mrw/multimap.hpp>
|
#include <mrw/multimap.hpp>
|
||||||
|
#include <mrw/stacktrace.hpp>
|
||||||
#include <cppunit/TestFixture.h>
|
#include <cppunit/TestFixture.h>
|
||||||
#include <cppunit/ui/text/TestRunner.h>
|
#include <cppunit/ui/text/TestRunner.h>
|
||||||
#include <cppunit/extensions/HelperMacros.h>
|
#include <cppunit/extensions/HelperMacros.h>
|
||||||
#include <cppunit/extensions/TestFactoryRegistry.h>
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
class StdExtTest: public CppUnit::TestFixture {
|
class StdExtTest: public CppUnit::TestFixture {
|
||||||
public:
|
public:
|
||||||
void StringConv() {
|
void StringConv() {
|
||||||
@@ -143,9 +145,7 @@ public:
|
|||||||
try {
|
try {
|
||||||
s<<1<<2<<3<<4<<5<<6<<7<<8<<8;
|
s<<1<<2<<3<<4<<5<<6<<7<<8<<8;
|
||||||
} catch (mrw::invalid_argument& e) {
|
} catch (mrw::invalid_argument& e) {
|
||||||
std::cout<<"******** EXCEPTION"<<std::endl
|
mrw::StackTrace::createSymtable();
|
||||||
<<e.what()<<std::endl
|
|
||||||
<<e.stacktrace();
|
|
||||||
exc=true;
|
exc=true;
|
||||||
}
|
}
|
||||||
CPPUNIT_ASSERT(exc);
|
CPPUNIT_ASSERT(exc);
|
||||||
@@ -174,9 +174,6 @@ public:
|
|||||||
<<std::make_pair(2, std::string("two"))
|
<<std::make_pair(2, std::string("two"))
|
||||||
<<std::make_pair(2, std::string("two"));
|
<<std::make_pair(2, std::string("two"));
|
||||||
} catch (mrw::invalid_argument& e) {
|
} catch (mrw::invalid_argument& e) {
|
||||||
std::cout<<"******** EXCEPTION"<<std::endl
|
|
||||||
<<e.what()<<std::endl
|
|
||||||
<<e.stacktrace();
|
|
||||||
exc=true;
|
exc=true;
|
||||||
}
|
}
|
||||||
CPPUNIT_ASSERT(exc);
|
CPPUNIT_ASSERT(exc);
|
||||||
|
Reference in New Issue
Block a user