|
13 | 13 | * See the License for the specific language governing permissions and
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
| 16 | +#include <errno.h> |
16 | 17 | #include "mbed.h"
|
17 | 18 | #include "greentea-client/test_env.h"
|
18 | 19 | #include "unity.h"
|
19 | 20 | #include "utest.h"
|
20 | 21 | #include <stdlib.h>
|
21 |
| -#include <errno.h> |
22 | 22 |
|
23 | 23 | using namespace utest::v1;
|
24 | 24 |
|
@@ -354,7 +354,7 @@ void test_directory_remove()
|
354 | 354 | res = fs.mount(&bd);
|
355 | 355 | TEST_ASSERT_EQUAL(0, res);
|
356 | 356 | res = remove("/fs/" "potato");
|
357 |
| - TEST_ASSERT_EQUAL(EINVAL, errno); |
| 357 | + TEST_ASSERT_EQUAL(ENOTEMPTY, errno); |
358 | 358 | res = remove("/fs/" "potato/sweet");
|
359 | 359 | TEST_ASSERT_EQUAL(0, res);
|
360 | 360 | res = remove("/fs/" "potato/baked");
|
@@ -536,7 +536,7 @@ void test_directory_rename()
|
536 | 536 | res = mkdir("/fs/" "warmpotato/mushy", 0777);
|
537 | 537 | TEST_ASSERT_EQUAL(0, res);
|
538 | 538 | res = rename("/fs/" "hotpotato", "/fs/" "warmpotato");
|
539 |
| - TEST_ASSERT_EQUAL(EINVAL, errno); |
| 539 | + TEST_ASSERT_EQUAL(ENOTEMPTY, errno); |
540 | 540 | res = remove("/fs/" "warmpotato/mushy");
|
541 | 541 | TEST_ASSERT_EQUAL(0, res);
|
542 | 542 | res = rename("/fs/" "hotpotato", "/fs/" "warmpotato");
|
@@ -600,7 +600,7 @@ void test_directory_rename()
|
600 | 600 | res = rename("/fs/" "warmpotato/fried", "/fs/" "coldpotato/fried");
|
601 | 601 | TEST_ASSERT_EQUAL(0, res);
|
602 | 602 | res = remove("/fs/" "coldpotato");
|
603 |
| - TEST_ASSERT_EQUAL(EINVAL, errno); |
| 603 | + TEST_ASSERT_EQUAL(ENOTEMPTY, errno); |
604 | 604 | res = remove("/fs/" "warmpotato");
|
605 | 605 | TEST_ASSERT_EQUAL(0, res);
|
606 | 606 | res = fs.unmount();
|
|
0 commit comments