diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 317da38588b7898a99fd9168571408123350012b (patch) | |
tree | 25eebc31526019ad39a6c1b13f492963d97ba439 /util/system/guard_ut.cpp | |
parent | 3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff) | |
download | ydb-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.cpp | 16 |
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) |