File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
features/storage/TESTS/kvstore Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ void test_file_system_store_functionality_unit_test()
104
104
105
105
FileSystemStore *fsst = new FileSystemStore (fs);
106
106
107
- err = fsst->init (InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
107
+ err = fsst->init (InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
108
108
TEST_ASSER_EQUAL_ERROR_CODE (MBED_ERROR_INITIALIZATION_FAILED, err);
109
109
110
110
err = fsst->init ();
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ static void white_box_test()
138
138
139
139
for (int i = 0 ; i < 2 ; i++) {
140
140
timer.reset ();
141
- result = tdbs->init (InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
141
+ result = tdbs->init (InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
142
142
elapsed = timer.read_ms ();
143
143
TEST_ASSER_EQUAL_ERROR_CODE (MBED_ERROR_INITIALIZATION_FAILED, result);
144
144
printf (" Elapsed time for exclusive init failure %d ms\n " , elapsed);
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ static void white_box_test()
154
154
TDBStore *tdbs = new TDBStore (test_bd);
155
155
156
156
timer.reset ();
157
- result = tdbs->init (InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
157
+ result = tdbs->init (InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
158
158
elapsed = timer.read_ms ();
159
159
TEST_ASSER_EQUAL_ERROR_CODE (MBED_ERROR_INITIALIZATION_FAILED, result);
160
160
printf (" Elapsed time for exclusive init failure %d ms\n " , elapsed);
You can’t perform that action at this time.
0 commit comments