Change-Id: I6ed087ac1794ab3249c0915047187a0f832e85a9
if (!SamePid())
return;
- /*
- * Let it throw. If we can't remove data then remaining tests results will be
- * unreliable anyway.
- */
- check_remove_allowed(m_alias);
+ try {
+ check_remove_allowed(m_alias);
+ } catch (const DPL::Test::TestException& e) {
+ RUNNER_ERROR_MSG("TestException in ScopedAppContext destructor: " << e.GetMessage());
+ } catch (...) {
+ RUNNER_ERROR_MSG("Unknown exception in ScopedAppContext destructor");
+ }
}
ScopedSaveData::ScopedSaveData(const std::string& alias,