diff options
Diffstat (limited to 'test/MultiFileAllocationIteratorTest.cc')
| -rw-r--r-- | test/MultiFileAllocationIteratorTest.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/MultiFileAllocationIteratorTest.cc b/test/MultiFileAllocationIteratorTest.cc index 88736670..b8c808ae 100644 --- a/test/MultiFileAllocationIteratorTest.cc +++ b/test/MultiFileAllocationIteratorTest.cc @@ -149,11 +149,8 @@ void MultiFileAllocationIteratorTest::testAllocate() CPPUNIT_ASSERT_EQUAL((uint64_t)length5, File(dir+"/"+topDir+"/"+fname5).size()); CPPUNIT_ASSERT_EQUAL(0ULL, File(dir+"/"+topDir+"/"+fname6).size()); - } catch(Exception* e) { - std::cerr << *e << std::endl; - std::string m = e->getMsg(); - delete e; - CPPUNIT_FAIL(m); + } catch(Exception& e) { + CPPUNIT_FAIL(e.stackTrace()); } } |
