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

Extra test for region allocate/free #251

Open
igchor opened this issue Jul 18, 2022 · 0 comments
Open

Extra test for region allocate/free #251

igchor opened this issue Jul 18, 2022 · 0 comments

Comments

@igchor
Copy link
Contributor

igchor commented Jul 18, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant