Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -12,7 +12,6 @@
#include <gtest/gtest.h>
#include "lib/alloc/ob_malloc_allocator.h"
#include "lib/allocator/ob_malloc.h"
using namespace oceanbase::lib;
using namespace oceanbase::common;
@ -61,17 +60,6 @@ TEST(TestMallocAllocator, idle)
OB_MALLOC_BIG_BLOCK_SIZE));
}
TEST(TestMallocAllocator, ob_malloc_align)
{
void *ptr = ob_malloc_align(1, 4, "test");
ASSERT_TRUE(ptr != NULL);
ASSERT_EQ(0, (int64_t)ptr % 16);
ptr = ob_malloc_align(4096, 4, "test");
ASSERT_TRUE(ptr != NULL);
ASSERT_EQ(0, (int64_t)ptr % 4096);
}
int main(int argc, char *argv[])
{
signal(49, SIG_IGN);