mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-01 12:20:02 +00:00
emubd: Renamed LFS_EMUBD_POWERLOSS_NOOP -> LFS_EMUBD_POWERLOSS_ATOMIC
Mainly to avoid ambiguity with PROGNOOP/ERASENOOP and make it clear emubd still simulates powerloss, but also because I think the name sounds cooler.
This commit is contained in:
@ -46,7 +46,7 @@ typedef enum lfs_emubd_badblock_behavior {
|
||||
|
||||
// Mode determining how power-loss behaves during testing.
|
||||
typedef enum lfs_emubd_powerloss_behavior {
|
||||
LFS_EMUBD_POWERLOSS_NOOP = 0, // Progs are atomic
|
||||
LFS_EMUBD_POWERLOSS_ATOMIC = 0, // Progs are atomic
|
||||
LFS_EMUBD_POWERLOSS_SOMEBITS = 1, // One bit is progged
|
||||
LFS_EMUBD_POWERLOSS_MOSTBITS = 2, // All-but-one bit is progged
|
||||
LFS_EMUBD_POWERLOSS_OOO = 3, // Blocks are written out-of-order
|
||||
|
||||
@ -124,7 +124,7 @@ void bench_permutation(size_t i, uint32_t *buffer, size_t size);
|
||||
BENCH_DEFINE(ERASE_VALUE, 0xff ) \
|
||||
BENCH_DEFINE(ERASE_CYCLES, 0 ) \
|
||||
BENCH_DEFINE(BADBLOCK_BEHAVIOR, LFS_EMUBD_BADBLOCK_PROGERROR ) \
|
||||
BENCH_DEFINE(POWERLOSS_BEHAVIOR, LFS_EMUBD_POWERLOSS_NOOP ) \
|
||||
BENCH_DEFINE(POWERLOSS_BEHAVIOR, LFS_EMUBD_POWERLOSS_ATOMIC ) \
|
||||
BENCH_DEFINE(EMUBD_SEED, 0 )
|
||||
|
||||
// declare defines as global intmax_ts
|
||||
|
||||
@ -115,7 +115,7 @@ void test_permutation(size_t i, uint32_t *buffer, size_t size);
|
||||
TEST_DEFINE(ERASE_VALUE, 0xff ) \
|
||||
TEST_DEFINE(ERASE_CYCLES, 0 ) \
|
||||
TEST_DEFINE(BADBLOCK_BEHAVIOR, LFS_EMUBD_BADBLOCK_PROGERROR ) \
|
||||
TEST_DEFINE(POWERLOSS_BEHAVIOR, LFS_EMUBD_POWERLOSS_NOOP ) \
|
||||
TEST_DEFINE(POWERLOSS_BEHAVIOR, LFS_EMUBD_POWERLOSS_ATOMIC ) \
|
||||
TEST_DEFINE(EMUBD_SEED, 0 )
|
||||
|
||||
// declare defines as global intmax_ts
|
||||
|
||||
@ -23,7 +23,7 @@ after = [
|
||||
#
|
||||
[cases.test_powerloss_spam_dir_many]
|
||||
defines.POWERLOSS_BEHAVIOR = [
|
||||
'LFS_EMUBD_POWERLOSS_NOOP',
|
||||
'LFS_EMUBD_POWERLOSS_ATOMIC',
|
||||
'LFS_EMUBD_POWERLOSS_SOMEBITS',
|
||||
'LFS_EMUBD_POWERLOSS_MOSTBITS',
|
||||
'LFS_EMUBD_POWERLOSS_OOO',
|
||||
@ -121,7 +121,7 @@ code = '''
|
||||
#
|
||||
[cases.test_powerloss_spam_file_many]
|
||||
defines.POWERLOSS_BEHAVIOR = [
|
||||
'LFS_EMUBD_POWERLOSS_NOOP',
|
||||
'LFS_EMUBD_POWERLOSS_ATOMIC',
|
||||
'LFS_EMUBD_POWERLOSS_SOMEBITS',
|
||||
'LFS_EMUBD_POWERLOSS_MOSTBITS',
|
||||
'LFS_EMUBD_POWERLOSS_OOO',
|
||||
@ -221,7 +221,7 @@ code = '''
|
||||
#
|
||||
[cases.test_powerloss_spam_f_pl_fuzz]
|
||||
defines.POWERLOSS_BEHAVIOR = [
|
||||
'LFS_EMUBD_POWERLOSS_NOOP',
|
||||
'LFS_EMUBD_POWERLOSS_ATOMIC',
|
||||
'LFS_EMUBD_POWERLOSS_SOMEBITS',
|
||||
'LFS_EMUBD_POWERLOSS_MOSTBITS',
|
||||
'LFS_EMUBD_POWERLOSS_OOO',
|
||||
@ -451,7 +451,7 @@ code = '''
|
||||
#
|
||||
[cases.test_powerloss_spam_fd_pl_fuzz]
|
||||
defines.POWERLOSS_BEHAVIOR = [
|
||||
'LFS_EMUBD_POWERLOSS_NOOP',
|
||||
'LFS_EMUBD_POWERLOSS_ATOMIC',
|
||||
'LFS_EMUBD_POWERLOSS_SOMEBITS',
|
||||
'LFS_EMUBD_POWERLOSS_MOSTBITS',
|
||||
'LFS_EMUBD_POWERLOSS_OOO',
|
||||
|
||||
Reference in New Issue
Block a user