summaryrefslogtreecommitdiffstats
path: root/test/cpp/test_path_std.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/test_path_std.cpp')
-rw-r--r--test/cpp/test_path_std.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/cpp/test_path_std.cpp b/test/cpp/test_path_std.cpp
index 50ccad4..6c0e450 100644
--- a/test/cpp/test_path_std.cpp
+++ b/test/cpp/test_path_std.cpp
@@ -433,8 +433,8 @@ equal(const std::filesystem::path& path, const ZixStringView view)
path.u8string() == std::string{view.data, view.length});
}
-int
-main()
+static void
+run()
{
using Path = std::filesystem::path;
@@ -493,3 +493,15 @@ main()
zix_path_lexically_relative(nullptr, relatives.rhs, relatives.lhs)));
}
}
+
+int
+main()
+{
+ try {
+ run();
+ } catch (...) {
+ return 1;
+ }
+
+ return 0;
+}