xo-alloc: mutation log tracking in working state + unit test
This commit is contained in:
parent
5f46b51f12
commit
c7488cbfd5
14 changed files with 659 additions and 94 deletions
|
|
@ -1,11 +1,13 @@
|
|||
# build unittest alloc/utest
|
||||
#
|
||||
# NOTE: more GC tests in xo-object/utest
|
||||
|
||||
set(SELF_EXE utest.alloc)
|
||||
set(SELF_SRCS
|
||||
set(UTEST_EXE utest.alloc)
|
||||
set(UTEST_SRCS
|
||||
alloc_utest_main.cpp
|
||||
ArenaAlloc.test.cpp
|
||||
GC.test.cpp)
|
||||
|
||||
xo_add_utest_executable(${SELF_EXE} ${SELF_SRCS})
|
||||
xo_self_dependency(${SELF_EXE} xo_alloc)
|
||||
xo_external_target_dependency(${SELF_EXE} Catch2 Catch2::Catch2)
|
||||
xo_add_utest_executable(${UTEST_EXE} ${UTEST_SRCS})
|
||||
xo_self_dependency(${UTEST_EXE} xo_alloc)
|
||||
xo_external_target_dependency(${UTEST_EXE} Catch2 Catch2::Catch2)
|
||||
|
|
|
|||
|
|
@ -65,5 +65,8 @@ namespace xo {
|
|||
REQUIRE(gc->gc_statistics().gen_v_[gen2int(generation::tenured)].n_gc_ == 1);
|
||||
}
|
||||
}
|
||||
|
||||
} /*namespace ut*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* GC.test.cpp */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue