Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils-Arne Dreier
dune-common
Commits
0da225ef
Commit
0da225ef
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
Adjust tests using Dune::exception to link to libdunecommon
parent
8b733156
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/test/CMakeLists.txt
+4
-2
4 additions, 2 deletions
dune/common/test/CMakeLists.txt
dune/common/test/classnametest.cc
+7
-5
7 additions, 5 deletions
dune/common/test/classnametest.cc
with
11 additions
and
7 deletions
dune/common/test/CMakeLists.txt
+
4
−
2
View file @
0da225ef
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
dune/common/test/classnametest.cc
+
7
−
5
View file @
0da225ef
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment