diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/flock_ut.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/flock_ut.cpp')
-rw-r--r-- | util/system/flock_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/flock_ut.cpp b/util/system/flock_ut.cpp index b5f6cb5328..58bed0e4ae 100644 --- a/util/system/flock_ut.cpp +++ b/util/system/flock_ut.cpp @@ -1,18 +1,18 @@ -#include "flock.h" +#include "flock.h" #include "file_lock.h" #include "guard.h" -#include "tempfile.h" - +#include "tempfile.h" + #include <library/cpp/testing/unittest/registar.h> - + Y_UNIT_TEST_SUITE(TFileLockTest) { Y_UNIT_TEST(TestFlock) { - TTempFileHandle tmp("./file"); - - UNIT_ASSERT_EQUAL(Flock(tmp.GetHandle(), LOCK_EX), 0); - UNIT_ASSERT_EQUAL(Flock(tmp.GetHandle(), LOCK_UN), 0); - } - + TTempFileHandle tmp("./file"); + + UNIT_ASSERT_EQUAL(Flock(tmp.GetHandle(), LOCK_EX), 0); + UNIT_ASSERT_EQUAL(Flock(tmp.GetHandle(), LOCK_UN), 0); + } + Y_UNIT_TEST(TestFileLocker) { TTempFileHandle tmp("./file.locker"); TFileLock fileLockExclusive1("./file.locker"); |