Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文档中,工程目标/添加测试用例 一节有代码错误 #180

Closed
ay-tony opened this issue Aug 6, 2024 · 1 comment
Closed
Labels

Comments

@ay-tony
Copy link
Contributor

ay-tony commented Aug 6, 2024

Xmake 版本

2.9.4

操作系统版本和架构

Linux laptop-mach 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux

描述问题

工程目标/添加测试用例 一节中,“首次测试失败就中止“标题下面附的代码错误。
具体链接位置
image
这个 set_policy 是用来测试失败返回0的代码(下一个标题下附带的代码,推测是打错了)。
英文文档对应位置也有问题。

期待的结果

查了下源码,应该改成
set_policy("test.stop_on_first_failure", true)

工程配置

附加信息和错误日志

@ay-tony ay-tony added the bug label Aug 6, 2024
@waruqi
Copy link
Member

waruqi commented Aug 7, 2024

可以直接提个 pr 过来修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants