aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/guard_ut.cpp
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.ru>2022-02-10 16:46:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:31 +0300
commit317da38588b7898a99fd9168571408123350012b (patch)
tree25eebc31526019ad39a6c1b13f492963d97ba439 /util/system/guard_ut.cpp
parent3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff)
downloadydb-317da38588b7898a99fd9168571408123350012b.tar.gz
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/guard_ut.cpp')
-rw-r--r--util/system/guard_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/guard_ut.cpp b/util/system/guard_ut.cpp
index 404ede99ab..6cb9079211 100644
--- a/util/system/guard_ut.cpp
+++ b/util/system/guard_ut.cpp
@@ -14,7 +14,7 @@ struct TTestGuard: public TTestBase {
UNIT_TEST(TestUnguard)
UNIT_TEST(TestTryReadGuard)
UNIT_TEST(TestWithLock)
- UNIT_TEST(TestWithLockScope);
+ UNIT_TEST(TestWithLockScope);
UNIT_TEST_SUITE_END();
struct TGuardChecker {
@@ -167,14 +167,14 @@ struct TTestGuard: public TTestBase {
UNIT_ASSERT(!m.guarded);
UNIT_ASSERT_EQUAL(n, 43);
}
-
- void TestWithLockScope() {
- auto Guard = [](auto) { UNIT_FAIL("Non global Guard used"); return 0; };
- TGuardChecker m;
+
+ void TestWithLockScope() {
+ auto Guard = [](auto) { UNIT_FAIL("Non global Guard used"); return 0; };
+ TGuardChecker m;
with_lock (m) {
- Y_UNUSED(Guard);
- }
- }
+ Y_UNUSED(Guard);
+ }
+ }
};
UNIT_TEST_SUITE_REGISTRATION(TTestGuard)