Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user