From 1e5761e75325a8b45eb61e55d73ee92823ed4da4 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 6 Sep 2022 09:12:45 +0200 Subject: [PATCH] chore: Support clang-format 14 clang-format 14 chokes on a construction in unittest/test_Stat.cpp. Work around this by moving ifdefs around. --- unittest/test_Stat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittest/test_Stat.cpp b/unittest/test_Stat.cpp index 688656040..b7e6178aa 100644 --- a/unittest/test_Stat.cpp +++ b/unittest/test_Stat.cpp @@ -512,9 +512,9 @@ TEST_CASE("Special" * doctest::skip(running_under_wine())) #endif } -#ifdef _WIN32 SUBCASE("block device") { +#ifdef _WIN32 auto stat = Stat::stat("\\\\.\\C:"); CHECK(stat); CHECK(stat.error_number() == 0); @@ -524,8 +524,8 @@ TEST_CASE("Special" * doctest::skip(running_under_wine())) CHECK(S_ISBLK(stat.mode())); CHECK(stat.file_attributes() == 0); CHECK(stat.reparse_tag() == 0); - } #endif + } } #ifdef _WIN32 -- 2.47.2