From: Michal Nowikowski Date: Thu, 7 Mar 2019 09:56:14 +0000 (+0100) Subject: replaced throwing exception in destructor with a trace and exit(1) X-Git-Tag: 465-add-subnet4-update-and-subnet6-update-commands-to-subnet-cmds-hook_base2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dfd1328936e2f7cb8feda96a3a520dbe2639069;p=thirdparty%2Fkea.git replaced throwing exception in destructor with a trace and exit(1) --- diff --git a/src/lib/testutils/sandbox.h b/src/lib/testutils/sandbox.h index 13aab6ed5c..f030034e8f 100644 --- a/src/lib/testutils/sandbox.h +++ b/src/lib/testutils/sandbox.h @@ -11,8 +11,10 @@ #include #include +#include #include #include +#include #include #include @@ -46,7 +48,9 @@ public: ~Sandbox() { // Delete content of path_ recursively. if (nftw(path_.c_str(), Sandbox::rmFile, 10, FTW_DEPTH | FTW_MOUNT | FTW_PHYS) < 0) { - isc_throw(isc::Unexpected, "Some issue occured while deleting unit test sandbox."); + auto msg = "Some error occured while deleting unit test sandbox " + path_; + std::perror(msg.c_str()); + exit(1); } }