[riot-notifications] [RIOT-OS/RIOT] fs: add littlefs as a package (#8239)

Vincent Dupont notifications at github.com
Tue Dec 19 14:45:41 CET 2017


vincent-d commented on this pull request.



> +    const char buf[] = "TESTSTRING";
+
+    int res;
+    int fd = vfs_open("/test-littlefs/test.txt", O_CREAT | O_RDWR, 0);
+    TEST_ASSERT(fd >= 0);
+
+    res = vfs_write(fd, buf, sizeof(buf));
+    TEST_ASSERT_EQUAL_INT(sizeof(buf), res);
+
+    res = vfs_close(fd);
+    TEST_ASSERT_EQUAL_INT(0, res);
+
+    res = vfs_unlink("/test-littlefs/test.txt");
+    TEST_ASSERT_EQUAL_INT(0, res);
+}
+#include <stdio.h>

Debug leftover, removed

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8239#discussion_r157757630
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20171219/8a4fea31/attachment.html>


More information about the notifications mailing list