aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/unittests
diff options
context:
space:
mode:
authoraleexfi <aleexfi@yandex-team.com>2023-04-17 19:04:38 +0300
committeraleexfi <aleexfi@yandex-team.com>2023-04-17 19:04:38 +0300
commit33eeb5e847369fe68b7a4780f62c536860d257d2 (patch)
treedb0e5692e4e63f902e8177eb076f22721dda50c2 /library/cpp/yt/memory/unittests
parent68531f6882c2533c3537acb445adb5c81fabf62b (diff)
downloadydb-33eeb5e847369fe68b7a4780f62c536860d257d2.tar.gz
Revert "YT-17689: Move TFreeList to library/cpp/yt/memory"
This reverts commit 617a1d07971366c19cdf278579ee9b1cbfa53db8, reversing changes made to 27e0312d3842c4e5e3ea6b09611c8f6ff6938dd6.
Diffstat (limited to 'library/cpp/yt/memory/unittests')
-rw-r--r--library/cpp/yt/memory/unittests/free_list_ut.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/library/cpp/yt/memory/unittests/free_list_ut.cpp b/library/cpp/yt/memory/unittests/free_list_ut.cpp
deleted file mode 100644
index 307a5abb7c..0000000000
--- a/library/cpp/yt/memory/unittests/free_list_ut.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <library/cpp/testing/gtest/gtest.h>
-
-#include <library/cpp/yt/memory/free_list.h>
-
-namespace NYT {
-namespace {
-
-////////////////////////////////////////////////////////////////////////////////
-
-TEST(TFreeListTest, CompareAndSet)
-{
- TAtomicUint128 v = 0;
- ui64 p1 = 0;
- ui64 p2 = 0;
- EXPECT_TRUE(NYT::NDetail::CompareAndSet(&v, p1, p2, ui64{13}, ui64{9}));
- EXPECT_FALSE(NYT::NDetail::CompareAndSet(&v, p1, p2, ui64{100}, ui64{500}));
- EXPECT_EQ(13u, p1);
- EXPECT_EQ(9u, p2);
- EXPECT_TRUE(NYT::NDetail::CompareAndSet(&v, p1, p2, ui64{100}, ui64{500}));
- EXPECT_EQ(TAtomicUint128{500} << 64 | 100, v);
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace
-} // namespace NYT