| 144 | } |
| 145 | |
| 146 | static void test_dfs_close(void) |
| 147 | { |
| 148 | /* Flush the file before closing (DFSV1 only, DFSV2 does it in close) */ |
| 149 | #ifndef RT_USING_DFS_V2 |
| 150 | dfs_file_flush(&fd); |
| 151 | #endif |
| 152 | |
| 153 | rt_err_t rst = dfs_file_close(&fd); |
| 154 | if (rst != 0) |
| 155 | { |
| 156 | rt_kprintf("test_dfs_close: close failed with result = %d\n", rst); |
| 157 | } |
| 158 | uassert_true(rst == 0); |
| 159 | |
| 160 | /* Deinitialize the file structure after closing (DFSV2 only) */ |
| 161 | #ifdef RT_USING_DFS_V2 |
| 162 | dfs_file_deinit(&fd); |
| 163 | #endif |
| 164 | } |
| 165 | |
| 166 | static void test_dfs_stat(void) |
| 167 | { |
nothing calls this directly
no test coverage detected