diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-01-22 19:37:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-01-22 19:37:13 +0000 |
commit | 50931934cbaeab57d2748c26b0fd54e1445e4494 (patch) | |
tree | d4039aa89d77154ea7629cb4635179a908739ba4 /infrastructure | |
parent | 2d6a0626b6e384bc160db3def77f5ca6b29ee8d3 (diff) |
Print the message of the exception that caused a test to fail.
Diffstat (limited to 'infrastructure')
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index b646a27b..b6a37b46 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -369,6 +369,12 @@ int main(int argc, char * const * argv) return returncode; } + catch(BoxException &e) + { + printf("FAILED: Exception caught: %s: %s\n", e.what(), + e.GetMessage().c_str()); + return 1; + } catch(std::exception &e) { printf("FAILED: Exception caught: %s\n", e.what()); |