xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_vfs 基础功能验证测试

概述

本目录包含 xt_vfs 基础功能验证测试(42 项),覆盖 VFS 核心 API 的正常路径行为,不测试边界条件(如文件表满、挂载表满、generation 防悬空等)。

自动挂载

VFS 的初始化与挂载由 xt_platform_preinit 组件在 main() 阶段自动完成,**测试中不需要手动 init/mount**。setUp() 和 tearDown() 仅负责测试环境清理。

编译运行

cd tests\xt_vfs_basic
xt --target windows/simulator fullclean build
xt --target windows/simulator run

预期输出:

42 Tests 0 Failures 0 Ignored
OK