-
-
Notifications
You must be signed in to change notification settings - Fork 774
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 在windows平台无法正确同时设置多个add_test("test",{run_timeout(1000)}) #5458
Comments
Title: xmake test cannot correctly add_test("test",{run_timeout(1000)}) on the windows platform Xmake versionxmake v2.9.4+dev.af3090adb Operating system version and architectureWindows11 22631.3880 Describe the problemxmake test cannot correctly add_test("test",{run_timeout(1000)}) on the windows platform
The linux platform is normal Expected resultsCorrectly kill the program and display the results in the set run_timeout() Project configurationThe minimum implementation is as follows target("test")
add_files("./src/*.cpp")
add_tests("test",{run_timeout=1000})
end src/main.cpp #include<bits/stdc++.h>
int main(){
int n;
std::cin>>n;
} Additional information and error logs
|
我更新了一下最小实现,希望作者能修复 |
I updated the minimal implementation, I hope the author can fix it |
给个完整工程。 |
Give a complete project. |
目前的实现,timeout 后,kill process 会导致 WaitForMultipleObjects 直接 failed,不太好搞,需要花时间重新处理下这块的 timeout 逻辑,等后面有时间再看看 Line 895 in c8e8e04
|
In the current implementation, after timeout, the kill process will cause WaitForMultipleObjects to fail directly, which is not easy to do. You need to spend time to reprocess this timeout logic and look at it later when you have time. Line 895 in c8e8e04
|
最小实现github链接 |
Minimum implementation github link |
Xmake 版本
xmake v2.9.4+dev.af3090adb
操作系统版本和架构
Windows11 x86-64 22631.3880 mingw64
描述问题
xmake test 在windows平台无法正确add_test("test",{run_timeout(1000)})
会出现
linux平台是正常的
期待的结果
在设置的run_timeout()正确kill掉程序并显示结果
工程配置
最小实现如下
lua文件
src/main.cpp
附加信息和错误日志
The text was updated successfully, but these errors were encountered: