summaryrefslogtreecommitdiffstats
path: root/test/cpp/test_path_std.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-04 19:25:22 -0500
committerDavid Robillard <d@drobilla.net>2023-02-04 19:25:22 -0500
commit5a9787b4247c6735cc3213944945e8983002edf9 (patch)
tree635a8711a53b9e50d7dcd24dc4acefefce694c3d /test/cpp/test_path_std.cpp
parentc4b3814edad510c6c124089822bd5506f9334411 (diff)
downloadzix-5a9787b4247c6735cc3213944945e8983002edf9.tar.gz
zix-5a9787b4247c6735cc3213944945e8983002edf9.tar.bz2
zix-5a9787b4247c6735cc3213944945e8983002edf9.zip
Suppress/fix clang-tidy warnings on Windows
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;
+}