mirror of https://github.com/ARMmbed/mbed-os.git
Update error codes as per mbed-os/pull/6336
parent
f1bb57ae79
commit
ba4ff5c2ea
|
|
@ -142,13 +142,13 @@
|
||||||
#include "mbed_debug.h"
|
#include "mbed_debug.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/* Required version: 5.8.0 and above */
|
/* Required version: 5.9.0 and above */
|
||||||
#if defined( MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5
|
#if defined( MBED_MAJOR_VERSION) && MBED_MAJOR_VERSION >= 5
|
||||||
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,8,0))
|
#if (MBED_VERSION < MBED_ENCODE_VERSION(5,9,0))
|
||||||
#error "Incompatible mbed-os version detected! Required 5.8.0 and above"
|
#error "Incompatible mbed-os version detected! Required 5.9.0 and above"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#warning "mbed-os version 5.8.0 or above required"
|
#warning "mbed-os version 5.9.0 or above required"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MBED_CONF_SD_CMD_TIMEOUT
|
#ifndef MBED_CONF_SD_CMD_TIMEOUT
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ void test_directory_failures() {
|
||||||
res = fs.mkdir("potato", 0777);
|
res = fs.mkdir("potato", 0777);
|
||||||
TEST_ASSERT_EQUAL(-EEXIST, res);
|
TEST_ASSERT_EQUAL(-EEXIST, res);
|
||||||
res = dir[0].open(&fs, "tomato");
|
res = dir[0].open(&fs, "tomato");
|
||||||
TEST_ASSERT_EQUAL(-ENOENT, res);
|
TEST_ASSERT_EQUAL(-ENOTDIR, res);
|
||||||
res = dir[0].open(&fs, "burito");
|
res = dir[0].open(&fs, "burito");
|
||||||
TEST_ASSERT_NOT_EQUAL(0, res);
|
TEST_ASSERT_NOT_EQUAL(0, res);
|
||||||
res = file[0].open(&fs, "tomato", O_RDONLY);
|
res = file[0].open(&fs, "tomato", O_RDONLY);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue