Mercurial > molko
comparison tests/test-vfs-dir.c @ 641:fcd124e513ea
core: reintroduce VFS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 01 Oct 2023 09:18:01 +0200 |
parents | 9850089c9671 |
children |
comparison
equal
deleted
inserted
replaced
640:9850089c9671 | 641:fcd124e513ea |
---|---|
31 | 31 |
32 DT_ASSERT(file = mlk_vfs_open(&dir.vfs, "hello.txt", "r")); | 32 DT_ASSERT(file = mlk_vfs_open(&dir.vfs, "hello.txt", "r")); |
33 DT_EQ_UINT(mlk_vfs_file_read(file, data, sizeof (data)), 13U); | 33 DT_EQ_UINT(mlk_vfs_file_read(file, data, sizeof (data)), 13U); |
34 DT_EQ_STR(data, "Hello World!\n"); | 34 DT_EQ_STR(data, "Hello World!\n"); |
35 | 35 |
36 mlk_vfs_file_free(file); | 36 mlk_vfs_file_finish(file); |
37 mlk_vfs_finish(&dir.vfs); | 37 mlk_vfs_finish(&dir.vfs); |
38 } | 38 } |
39 | 39 |
40 static void | 40 static void |
41 test_error_notfound(void) | 41 test_error_notfound(void) |