summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-09-06 09:12:45 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-09-06 09:12:45 +0200
commit1e5761e75325a8b45eb61e55d73ee92823ed4da4 (patch)
tree642862fb785b6b642faf7f60adf17a9fecb48985 /unittest
parent944def0ada5a31ed7d3f5e1e8f9c1baaa253bb23 (diff)
downloadccache-1e5761e75325a8b45eb61e55d73ee92823ed4da4.tar.gz
chore: Support clang-format 14
clang-format 14 chokes on a construction in unittest/test_Stat.cpp. Work around this by moving ifdefs around.
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_Stat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_Stat.cpp b/unittest/test_Stat.cpp
index 68865604..b7e6178a 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