From 243a135fe9091a3d306ee09b397779e503bb6adf Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 11 Mar 2015 15:42:20 +0100 Subject: [PATCH] tests: capture and print thrown errors --- test/lib/runner.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/lib/runner.cpp b/test/lib/runner.cpp index a5e461525..d00aa457c 100644 --- a/test/lib/runner.cpp +++ b/test/lib/runner.cpp @@ -29,6 +29,12 @@ int main(int argc, const char **argv) { - return brick::shelltest::run( argc, argv, "LVM_TEST_FLAVOUR" ); + try { + return brick::shelltest::run( argc, argv, "LVM_TEST_FLAVOUR" ); + } catch (std::exception const& e) { + std::cout << "Exception: " << e.what() << "\n"; + } + + return 1; } -- 2.43.5