Skip to content
Permalink
Browse files

tests: minor FCB re-ordering not to leave a random flash.bin behind

The last FCB test to run (fcb_test_last_of_n) uses uninitialized
test_data[] and leaves behind a flash.bin with random content. Pick
another one (fcb_test_reset) that leaves a deterministic flash.bin
behind and run that last instead.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information...
marc-hb authored and carlescufi committed Jun 20, 2019
1 parent 0bed100 commit 3f9151dae6181f469c500549cafc0a3a44642a25
Showing with 5 additions and 3 deletions.
  1. +5 −3 tests/subsys/fs/fcb/src/main.c
@@ -162,9 +162,6 @@ void test_main(void)
ztest_unit_test_setup_teardown(fcb_test_append_fill,
fcb_pretest_2_sectors,
teardown_nothing),
ztest_unit_test_setup_teardown(fcb_test_reset,
fcb_pretest_2_sectors,
teardown_nothing),
ztest_unit_test_setup_teardown(fcb_test_rotate,
fcb_pretest_2_sectors,
teardown_nothing),
@@ -173,6 +170,11 @@ void test_main(void)
teardown_nothing),
ztest_unit_test_setup_teardown(fcb_test_last_of_n,
fcb_pretest_4_sectors,
teardown_nothing),
/* Finally, run one that leaves behind a
* flash.bin file without any random content */
ztest_unit_test_setup_teardown(fcb_test_reset,
fcb_pretest_2_sectors,
teardown_nothing)
);

0 comments on commit 3f9151d

Please sign in to comment.
You can’t perform that action at this time.