Skip to content

Commit 87a2cb0

Browse files
committed
Fix assert
1 parent 4c9146e commit 87a2cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bd/lfs_testbd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block,
207207
bd->power_cycles -= 1;
208208
if (bd->power_cycles == 0) {
209209
// sync to make sure we persist the last changes
210-
assert(lfs_testbd_rawsync(cfg) == 0);
210+
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
211211
// simulate power loss
212212
exit(33);
213213
}
@@ -254,7 +254,7 @@ int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block) {
254254
bd->power_cycles -= 1;
255255
if (bd->power_cycles == 0) {
256256
// sync to make sure we persist the last changes
257-
assert(lfs_testbd_rawsync(cfg) == 0);
257+
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
258258
// simulate power loss
259259
exit(33);
260260
}

0 commit comments

Comments
 (0)