remove stdout, print stack trace

master
Marc Wäckerlin 20 years ago
parent 38f6f02c76
commit b22868131a
  1. 13
      mrw/stdext_test.cpp

@ -9,6 +9,9 @@
@license LGPL, see file <a href="license.html">COPYING</a>
$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
new feature
@ -22,13 +25,12 @@
#include <mrw/map.hpp>
#include <mrw/multiset.hpp>
#include <mrw/multimap.hpp>
#include <mrw/stacktrace.hpp>
#include <cppunit/TestFixture.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <iostream>
class StdExtTest: public CppUnit::TestFixture {
public:
void StringConv() {
@ -143,9 +145,7 @@ public:
try {
s<<1<<2<<3<<4<<5<<6<<7<<8<<8;
} catch (mrw::invalid_argument& e) {
std::cout<<"******** EXCEPTION"<<std::endl
<<e.what()<<std::endl
<<e.stacktrace();
mrw::StackTrace::createSymtable();
exc=true;
}
CPPUNIT_ASSERT(exc);
@ -174,9 +174,6 @@ public:
<<std::make_pair(2, std::string("two"))
<<std::make_pair(2, std::string("two"));
} catch (mrw::invalid_argument& e) {
std::cout<<"******** EXCEPTION"<<std::endl
<<e.what()<<std::endl
<<e.stacktrace();
exc=true;
}
CPPUNIT_ASSERT(exc);

Loading…
Cancel
Save