Skip to content
Snippets Groups Projects
Commit 0da225ef authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Adjust tests using Dune::exception to link to libdunecommon

parent 8b733156
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,8 @@ dune_add_test(NAME check_fvector_size_fail2
COMPILE_DEFINITIONS DIM=3
EXPECT_COMPILE_FAIL)
dune_add_test(SOURCES classnametest.cc)
dune_add_test(SOURCES classnametest.cc
LINK_LIBRARIES dunecommon)
dune_add_test(SOURCES conversiontest.cc)
......@@ -32,7 +33,8 @@ dune_add_test(SOURCES diagonalmatrixtest.cc
dune_add_test(SOURCES dynmatrixtest.cc
LINK_LIBRARIES dunecommon)
dune_add_test(SOURCES dynvectortest.cc)
dune_add_test(SOURCES dynvectortest.cc
LINK_LIBRARIES dunecommon)
dune_add_test(SOURCES enumsettest.cc)
......
......@@ -3,10 +3,13 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <dune/common/fvector.hh>
#include <dune/common/classname.hh>
#include <iostream>
#include <complex>
#include <iostream>
#include <dune/common/classname.hh>
#include <dune/common/exceptions.hh>
#include <dune/common/fvector.hh>
using Dune::FieldVector;
......@@ -49,8 +52,7 @@ int main()
std::cout << std::endl;
} catch (Dune::Exception& e) {
std::cerr << e << std::endl;
return 1;
throw;
} catch (...) {
std::cerr << "Generic exception!" << std::endl;
return 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment