aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/balloc/test
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/balloc/test
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'library/cpp/balloc/test')
-rw-r--r--library/cpp/balloc/test/do_with_disabled/main.cpp24
-rw-r--r--library/cpp/balloc/test/do_with_enabled/main.cpp24
2 files changed, 0 insertions, 48 deletions
diff --git a/library/cpp/balloc/test/do_with_disabled/main.cpp b/library/cpp/balloc/test/do_with_disabled/main.cpp
deleted file mode 100644
index 245887cb66b..00000000000
--- a/library/cpp/balloc/test/do_with_disabled/main.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <library/cpp/balloc/optional/operators.h>
-
-#undef NDEBUG
-
-#include <cstdlib>
-#include <cstring>
-#include <cassert>
-
-// internal hook for the testing
-extern "C" bool IsOwnedByBalloc(void* ptr);
-
-int main() {
- char* buf = (char*)malloc(100);
- assert(false == IsOwnedByBalloc(buf));
-
- ThreadEnableBalloc();
- char* buf2 = (char*)malloc(100);
- assert(true == IsOwnedByBalloc(buf2));
-
- free(buf);
- free(buf2);
-
- return 0;
-}
diff --git a/library/cpp/balloc/test/do_with_enabled/main.cpp b/library/cpp/balloc/test/do_with_enabled/main.cpp
deleted file mode 100644
index 02c165ccc3c..00000000000
--- a/library/cpp/balloc/test/do_with_enabled/main.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <library/cpp/balloc/optional/operators.h>
-
-#undef NDEBUG
-
-#include <cstdlib>
-#include <cstring>
-#include <cassert>
-
-// internal hook for the testing
-extern "C" bool IsOwnedByBalloc(void* ptr);
-
-int main() {
- char* buf = (char*)malloc(100);
- assert(true == IsOwnedByBalloc(buf));
-
- ThreadDisableBalloc();
- char* buf2 = (char*)malloc(100);
- assert(false == IsOwnedByBalloc(buf2));
-
- free(buf);
- free(buf2);
-
- return 0;
-}