Commit 9ab63ad3 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

tests: do not catch polymorphic type by value

parent c8db999d
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
}
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment