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:
parent
bdf4e3e2f2
commit
243a135fe9
@ -29,6 +29,12 @@
|
|||||||
|
|
||||||
int main(int argc, const char **argv)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user