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
commit43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /util/system/flock_ut.cpp
parentbd30392c4cc92487950adc375c07adf52da1d592 (diff)
downloadydb-43f5a35593ebc9f6bcea619bb170394ea7ae468e.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 2 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 2bb705944c..b5f6cb5328 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());
}
- }
-}
+ }
+}