mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
cleanup test arenas
This commit is contained in:
@@ -44,6 +44,7 @@ test_tlsf_bitscan :: proc(t: ^testing.T) {
|
|||||||
@(test)
|
@(test)
|
||||||
test_align_bumping_block_limit :: proc(t: ^testing.T) {
|
test_align_bumping_block_limit :: proc(t: ^testing.T) {
|
||||||
a: virtual.Arena
|
a: virtual.Arena
|
||||||
|
defer virtual.arena_destroy(&a)
|
||||||
|
|
||||||
data, err := virtual.arena_alloc(&a, 4193371, 1)
|
data, err := virtual.arena_alloc(&a, 4193371, 1)
|
||||||
testing.expect_value(t, err, nil)
|
testing.expect_value(t, err, nil)
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ test_temp_allocator_big_alloc_and_alignment :: proc(t: ^testing.T) {
|
|||||||
test_align_bumping_block_limit :: proc(t: ^testing.T) {
|
test_align_bumping_block_limit :: proc(t: ^testing.T) {
|
||||||
a: runtime.Arena
|
a: runtime.Arena
|
||||||
a.minimum_block_size = 8*mem.Megabyte
|
a.minimum_block_size = 8*mem.Megabyte
|
||||||
|
defer runtime.arena_destroy(&a)
|
||||||
|
|
||||||
data, err := runtime.arena_alloc(&a, 4193371, 1)
|
data, err := runtime.arena_alloc(&a, 4193371, 1)
|
||||||
testing.expect_value(t, err, nil)
|
testing.expect_value(t, err, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user