aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/spinlock_ut.cpp
diff options
context:
space:
mode:
authordeshevoy <deshevoy@yandex-team.ru>2022-02-10 16:46:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:56 +0300
commite988f30484abe5fdeedcc7a5d3c226c01a21800c (patch)
tree0a217b173aabb57b7e51f8a169989b1a3e0309fe /util/system/spinlock_ut.cpp
parent33ee501c05d3f24036ae89766a858930ae66c548 (diff)
downloadydb-e988f30484abe5fdeedcc7a5d3c226c01a21800c.tar.gz
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/spinlock_ut.cpp')
-rw-r--r--util/system/spinlock_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/spinlock_ut.cpp b/util/system/spinlock_ut.cpp
index e8639a6404..501c499a71 100644
--- a/util/system/spinlock_ut.cpp
+++ b/util/system/spinlock_ut.cpp
@@ -18,13 +18,13 @@ Y_UNIT_TEST_SUITE(TSpinLock) {
UNIT_ASSERT(lock.IsLocked());
lock.Release();
UNIT_ASSERT(!lock.IsLocked());
-
- // Lockable requirements
- lock.lock();
- UNIT_ASSERT(lock.IsLocked());
- UNIT_ASSERT(!lock.try_lock());
- lock.unlock();
- UNIT_ASSERT(!lock.IsLocked());
+
+ // Lockable requirements
+ lock.lock();
+ UNIT_ASSERT(lock.IsLocked());
+ UNIT_ASSERT(!lock.try_lock());
+ lock.unlock();
+ UNIT_ASSERT(!lock.IsLocked());
}
Y_UNIT_TEST(TSpinLock_IsLocked) {