Skip to content

Commit

Permalink
cleanup test arenas
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Feb 12, 2025
1 parent 7df5be2 commit ae0f69f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/core/mem/test_core_mem.odin
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ test_tlsf_bitscan :: proc(t: ^testing.T) {
@(test)
test_align_bumping_block_limit :: proc(t: ^testing.T) {
a: virtual.Arena
defer virtual.arena_destroy(&a)

data, err := virtual.arena_alloc(&a, 4193371, 1)
testing.expect_value(t, err, nil)
Expand Down
1 change: 1 addition & 0 deletions tests/core/runtime/test_core_runtime.odin
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ test_temp_allocator_big_alloc_and_alignment :: proc(t: ^testing.T) {
test_align_bumping_block_limit :: proc(t: ^testing.T) {
a: runtime.Arena
a.minimum_block_size = 8*mem.Megabyte
defer runtime.arena_destroy(&a)

data, err := runtime.arena_alloc(&a, 4193371, 1)
testing.expect_value(t, err, nil)
Expand Down

0 comments on commit ae0f69f

Please sign in to comment.