aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/flock_ut.cpp
diff options
context:
space:
mode:
authormvel <mvel@yandex-team.ru>2022-02-10 16:45:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:41 +0300
commitbd30392c4cc92487950adc375c07adf52da1d592 (patch)
treee8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /util/system/flock_ut.cpp
parent5d50718e66d9c037dc587a0211110b7d25a66185 (diff)
downloadydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/flock_ut.cpp')
-rw-r--r--util/system/flock_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/flock_ut.cpp b/util/system/flock_ut.cpp
index b5f6cb5328..2bb705944c 100644
--- a/util/system/flock_ut.cpp
+++ b/util/system/flock_ut.cpp
@@ -1,6 +1,6 @@
#include "flock.h"
-#include "file_lock.h"
-#include "guard.h"
+#include "file_lock.h"
+#include "guard.h"
#include "tempfile.h"
#include <library/cpp/testing/unittest/registar.h>
@@ -14,15 +14,15 @@ Y_UNIT_TEST_SUITE(TFileLockTest) {
}
Y_UNIT_TEST(TestFileLocker) {
- TTempFileHandle tmp("./file.locker");
+ TTempFileHandle tmp("./file.locker");
TFileLock fileLockExclusive1("./file.locker");
TFileLock fileLockExclusive2("./file.locker");
TFileLock fileLockShared1("./file.locker", EFileLockType::Shared);
TFileLock fileLockShared2("./file.locker", EFileLockType::Shared);
TFileLock fileLockShared3("./file.locker", EFileLockType::Shared);
- {
+ {
TGuard<TFileLock> guard(fileLockExclusive1);
- }
+ }
{
TTryGuard<TFileLock> tryGuard(fileLockExclusive1);
UNIT_ASSERT(tryGuard.WasAcquired());
@@ -53,5 +53,5 @@ Y_UNIT_TEST_SUITE(TFileLockTest) {
UNIT_ASSERT(!guard2.WasAcquired());
UNIT_ASSERT(guard3.WasAcquired());
}
- }
-}
+ }
+}