Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
agnumpde
dune-tnnmg
Commits
9ab63ad3
Commit
9ab63ad3
authored
Jun 25, 2018
by
Ansgar Burchardt
Browse files
tests: do not catch polymorphic type by value
parent
c8db999d
Changes
5
Hide whitespace changes
Inline
Side-by-side
dune/tnnmg/test/multitypegstest.cc
View file @
9ab63ad3
...
...
@@ -256,7 +256,7 @@ int main(int argc, char** argv) try
return
passed
?
0
:
1
;
}
catch
(
Dune
::
Exception
e
)
{
catch
(
const
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
...
...
dune/tnnmg/test/nonlineargsperformancetest.cc
View file @
9ab63ad3
...
...
@@ -278,7 +278,7 @@ int main(int argc, char** argv) try
return
passed
?
0
:
1
;
}
catch
(
Dune
::
Exception
e
)
{
catch
(
const
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
...
...
dune/tnnmg/test/nonlineargstest.cc
View file @
9ab63ad3
...
...
@@ -354,7 +354,7 @@ int main(int argc, char** argv) try
return
passed
?
0
:
1
;
}
catch
(
Dune
::
Exception
e
)
{
catch
(
const
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
...
...
dune/tnnmg/test/simplexsolvertest.cc
View file @
9ab63ad3
...
...
@@ -91,7 +91,7 @@ int main(int argc, char** argv) try {
try
{
solver
(
x
,
f
,
ignore
);
passed
=
passed
and
false
;
}
catch
(
Dune
::
NotImplemented
)
{
}
catch
(
const
Dune
::
NotImplemented
&
)
{
passed
=
passed
and
true
;
}
ignore
[
0
]
=
false
;
...
...
@@ -181,6 +181,6 @@ int main(int argc, char** argv) try {
}
return
passed
?
0
:
1
;
}
catch
(
Dune
::
Exception
e
)
{
}
catch
(
const
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
}
dune/tnnmg/test/tnnmgsteptest.cc
View file @
9ab63ad3
...
...
@@ -263,7 +263,7 @@ int main(int argc, char** argv) try
return
suite
.
exit
();
}
catch
(
Dune
::
Exception
e
)
{
catch
(
const
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment