File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
features/storage/TESTS/blockdevice/general_block_device Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ mbed test -m K64F -t ARM -n mbed-os-features-storage-tests-blockdevice-general_b
32
32
Use ` mbed test ` again:
33
33
34
34
```
35
- mbed test -m K64F -t ARM -n mbed-os-features-storage-tests-blockdevice-general_block_device --run
35
+ mbed test -m K64F -t ARM -n mbed-os-features-storage-tests-blockdevice-general_block_device --run -v
36
36
```
37
37
38
38
#### Troubleshooting
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ void test_random_program_read_erase()
95
95
96
96
BlockDevice *block_device = BlockDevice::get_default_instance ();
97
97
98
+ if (!block_device) {
99
+ utest_printf (" \n no block device found.\n " );
100
+ return ;
101
+ }
102
+
98
103
int err = block_device->init ();
99
104
TEST_ASSERT_EQUAL (0 , err);
100
105
@@ -164,6 +169,11 @@ void test_multi_threads()
164
169
165
170
BlockDevice *block_device = BlockDevice::get_default_instance ();
166
171
172
+ if (!block_device) {
173
+ utest_printf (" \n no block device found.\n " );
174
+ return ;
175
+ }
176
+
167
177
int err = block_device->init ();
168
178
TEST_ASSERT_EQUAL (0 , err);
169
179
You can’t perform that action at this time.
0 commit comments