Skip to content

Commit

Permalink
Fixed test out-of-space issues with powerloss testing
Browse files Browse the repository at this point in the history
These are just incorrect limits in the tests that can be triggered by
powerloss testing, which can end up with more metadata-pairs than
without powerloss testing due to orphans.
  • Loading branch information
geky committed Nov 28, 2022
1 parent 6c18b4d commit f89d758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_dirs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ code = '''

[cases.test_dirs_many_reentrant]
defines.N = [5, 11]
if = 'BLOCK_COUNT >= 4*N'
reentrant = true
code = '''
lfs_t lfs;
Expand Down
6 changes: 4 additions & 2 deletions tests/test_relocations.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ code = '''
[cases.test_relocations_reentrant]
reentrant = true
# TODO fix this case, caused by non-DAG trees
if = '!(DEPTH == 3 && CACHE_SIZE != 64)'
# NOTE the second condition is required
if = '!(DEPTH == 3 && CACHE_SIZE != 64) && 2*FILES < BLOCK_COUNT'
defines = [
{FILES=6, DEPTH=1, CYCLES=20, BLOCK_CYCLES=1},
{FILES=26, DEPTH=1, CYCLES=20, BLOCK_CYCLES=1},
Expand Down Expand Up @@ -239,7 +240,8 @@ code = '''
[cases.test_relocations_reentrant_renames]
reentrant = true
# TODO fix this case, caused by non-DAG trees
if = '!(DEPTH == 3 && CACHE_SIZE != 64)'
# NOTE the second condition is required
if = '!(DEPTH == 3 && CACHE_SIZE != 64) && 2*FILES < BLOCK_COUNT'
defines = [
{FILES=6, DEPTH=1, CYCLES=20, BLOCK_CYCLES=1},
{FILES=26, DEPTH=1, CYCLES=20, BLOCK_CYCLES=1},
Expand Down

0 comments on commit f89d758

Please sign in to comment.