diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:08 +0300 |
commit | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch) | |
tree | 506dac10f5df94fab310584ee51b24fc5a081c22 /util/system/thread_ut.cpp | |
parent | 2d37894b1b037cf24231090eda8589bbb44fb6fc (diff) | |
download | ydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread_ut.cpp')
-rw-r--r-- | util/system/thread_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/thread_ut.cpp b/util/system/thread_ut.cpp index d820898fd5..b99a200864 100644 --- a/util/system/thread_ut.cpp +++ b/util/system/thread_ut.cpp @@ -2,8 +2,8 @@ #include <library/cpp/testing/unittest/registar.h> -#include <atomic> - +#include <atomic> + Y_UNIT_TEST_SUITE(TSysThreadTest) { struct TIdTester { inline TIdTester() @@ -22,13 +22,13 @@ Y_UNIT_TEST_SUITE(TSysThreadTest) { inline void Run() { Cur = TThread::CurrentThreadId(); Real = Thr->Id(); - Numeric = TThread::CurrentThreadNumericId(); + Numeric = TThread::CurrentThreadNumericId(); } TThread* Thr; TThread::TId Cur; TThread::TId Real; - TThread::TId Numeric; + TThread::TId Numeric; }; Y_UNIT_TEST(TestThreadId) { @@ -42,8 +42,8 @@ Y_UNIT_TEST_SUITE(TSysThreadTest) { UNIT_ASSERT_EQUAL(tst.Cur, tst.Real); UNIT_ASSERT(tst.Cur != 0); - UNIT_ASSERT(tst.Numeric != 0); - UNIT_ASSERT(tst.Numeric != tst.Real); + UNIT_ASSERT(tst.Numeric != 0); + UNIT_ASSERT(tst.Numeric != tst.Real); } void* ThreadProc(void*) { |