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 @@ -100,7 +100,7 @@ void test_file_system_store_functionality_unit_test()
100
100
101
101
FileSystemStore *fsst = new FileSystemStore (fs);
102
102
103
- err = fsst->init (InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
103
+ err = fsst->init (InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
104
104
TEST_ASSER_EQUAL_ERROR_CODE (MBED_ERROR_INITIALIZATION_FAILED, err);
105
105
106
106
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 @@ -149,7 +149,7 @@ static void white_box_test()
149
149
TDBStore *tdbs = new TDBStore (test_bd);
150
150
151
151
timer.reset ();
152
- result = tdbs->init (InitModeFlags::Exclusive | InitModeFlags::ReadWrite);
152
+ result = tdbs->init (InitModeFlags::ExclusiveCreation | InitModeFlags::ReadWrite);
153
153
elapsed = timer.read_ms ();
154
154
TEST_ASSER_EQUAL_ERROR_CODE (MBED_ERROR_INITIALIZATION_FAILED, result);
155
155
printf (" Elapsed time for exclusive init failure %d ms\n " , elapsed);
You can’t perform that action at this time.
0 commit comments