Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Extra test for region allocate/free #251

@igchor

Description

@igchor

I'm not sure if current region_allocate clears all necessary metadata when taking region from free list.

Pseudocode:

r1 = allocate_region and append some data there
r2 = allocate_region and append some data there

reopen()

free_region(r1)
r3 = allocate_region()

if (testcase1) {
	check if data from r1 is not available
	check timestamps
} else if (testcase 2) {
	append some data to r3
	check if data from r1 is not available
	check timestamps
} else if (testcase3) {
	append some data to r2
	check if data from r1 is not available
	check timestamps
}

The above test cases are only for illustration. I think we could implement those tests as part of stateful testing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions