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

xmake test 支持配置超时时间 #4544

Closed
TOMO-CAT opened this issue Dec 27, 2023 · 2 comments
Closed

xmake test 支持配置超时时间 #4544

TOMO-CAT opened this issue Dec 27, 2023 · 2 comments

Comments

@TOMO-CAT
Copy link

你在什么场景下需要该功能?

对于一些超时的单测,xmake test 可能卡死

描述可能的解决方案

支持设置超时时间

描述你认为的候选方案

No response

其他信息

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: xmake test supports configuring the timeout period

In what scenario do you need this function?

For some single tests that time out, xmake test may freeze.

Describe possible solutions

Support setting timeout time

Describe your alternatives

No response

other information

No response

@waruqi
Copy link
Member

waruqi commented Dec 28, 2023

#4545

target("test_timeout")
    set_kind("binary")
    set_default(false)
    add_files("src/run_timeout.cpp")
    add_tests("run_timeout", {run_timeout = 1000})
$ xmake test
[100%]: test_timeout/run_timeout .................................... failed 1.006s
run failed, exit code: -1, exit error: wait process timeout

@waruqi waruqi added this to the v2.8.7 milestone Dec 28, 2023
Kethers pushed a commit to Kethers/xmake that referenced this issue Dec 29, 2023
@waruqi waruqi closed this as completed Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants