diff options
author | mvel <mvel@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
commit | 43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /util/system/flock_ut.cpp | |
parent | bd30392c4cc92487950adc375c07adf52da1d592 (diff) | |
download | ydb-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.cpp | 14 |
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()); } - } -} + } +} |