mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11582 from jamesbeyond/integration_test
TEST: change integration fs test format and mount orderpull/11607/head
commit
3787998069
|
|
@ -66,12 +66,12 @@ LittleFileSystem fs("sd");
|
||||||
|
|
||||||
static control_t test_format(const size_t call_count)
|
static control_t test_format(const size_t call_count)
|
||||||
{
|
{
|
||||||
|
int format_err = fs.format(&sd);
|
||||||
|
TEST_ASSERT_EQUAL_INT_MESSAGE(0, format_err, "could not format block device");
|
||||||
|
|
||||||
int mount_err = fs.mount(&sd);
|
int mount_err = fs.mount(&sd);
|
||||||
TEST_ASSERT_EQUAL_INT_MESSAGE(0, mount_err, "could not mount block device");
|
TEST_ASSERT_EQUAL_INT_MESSAGE(0, mount_err, "could not mount block device");
|
||||||
|
|
||||||
int format_err = fs.reformat(&sd);
|
|
||||||
TEST_ASSERT_EQUAL_INT_MESSAGE(0, format_err, "could not format block device");
|
|
||||||
|
|
||||||
return CaseNext;
|
return CaseNext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue