diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/thread_ut.cpp | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 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 b99a200864..d820898fd5 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*) { |