Skip to content

Commit

Permalink
Fix 5f66805
Browse files Browse the repository at this point in the history
Don't swallow exceptions by returning before rethrowing them
  • Loading branch information
qris committed Jan 15, 2018
1 parent fb2af31 commit 0f72030
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/backupstore/testbackupstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,15 @@ bool teardown_test_backupstore_specialised(const std::string& spec_name,
} \
catch (BoxException &e) \
{ \
BOX_WARNING("Specialised test failed with exception, cleaning up: " << \
name << ": " << e.what()); \
if (ServerIsAlive(bbstored_pid)) \
StopServer(); \
if(control.GetCurrentFileSystem() != NULL) \
{ \
control.GetCurrentFileSystem()->ReleaseLock(); \
} \
TEST_THAT_OR(teardown_test_backupstore_specialised(name, control), FAIL); \
TEST_THAT(teardown_test_backupstore_specialised(name, control)); \
throw; \
} \
TEARDOWN();
Expand Down

0 comments on commit 0f72030

Please sign in to comment.