Skip to content

Commit 70b7ba7

Browse files
committed
Rename flag to ExclusiveCreation in tests
1 parent 3c37fd1 commit 70b7ba7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

features/storage/TESTS/kvstore/filesystemstore_tests/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void test_file_system_store_functionality_unit_test()
100100

101101
FileSystemStore *fsst = new FileSystemStore(fs);
102102

103-
err = fsst->init(InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
103+
err = fsst->init(InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
104104
TEST_ASSER_EQUAL_ERROR_CODE(MBED_ERROR_INITIALIZATION_FAILED, err);
105105

106106
err = fsst->init();

features/storage/TESTS/kvstore/securestore_whitebox/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static void white_box_test()
138138

139139
for (int i = 0; i < 2; i++) {
140140
timer.reset();
141-
result = tdbs->init(InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
141+
result = tdbs->init(InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
142142
elapsed = timer.read_ms();
143143
TEST_ASSER_EQUAL_ERROR_CODE(MBED_ERROR_INITIALIZATION_FAILED, result);
144144
printf("Elapsed time for exclusive init failure %d ms\n", elapsed);

features/storage/TESTS/kvstore/tdbstore_whitebox/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void white_box_test()
149149
TDBStore *tdbs = new TDBStore(test_bd);
150150

151151
timer.reset();
152-
result = tdbs->init(InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
152+
result = tdbs->init(InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
153153
elapsed = timer.read_ms();
154154
TEST_ASSER_EQUAL_ERROR_CODE(MBED_ERROR_INITIALIZATION_FAILED, result);
155155
printf("Elapsed time for exclusive init failure %d ms\n", elapsed);

0 commit comments

Comments
 (0)