Skip to content

Linux + iPhone Continuity / iMessage / SMS

Potential fix for pull request finding

sfreeman422eb1f44121ba2
diff --git a/test/test_net.cpp b/test/test_net.cpp
index 5392ee7..5e1184e 100644
--- a/test/test_net.cpp
+++ b/test/test_net.cpp
@@ -25,7 +25,12 @@ namespace {
class CleanupGuard {
public:
CleanupGuard(const std::string& path) : path_(path) {}
- ~CleanupGuard() { std::filesystem::remove_all(path_); }
+ ~CleanupGuard() noexcept {
+ try {
+ std::filesystem::remove_all(path_);
+ } catch (...) {
+ }
+ }
private:
std::string path_;