1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: capture and print thrown errors

This commit is contained in:
Zdenek Kabelac 2015-03-11 15:42:20 +01:00
parent bdf4e3e2f2
commit 243a135fe9

View File

@ -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;
}