-
Notifications
You must be signed in to change notification settings - Fork 139
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
Incorrect handling of timed-tests on Windows #208
Comments
Hi, Thanks for the report. This is a timed test, the content looks like this:
Basically, it should sleep for 2 secs, which is enough for exceeding the one second limit attached to the test. Any idea why the sleep might not work? |
I am not able to reproduce the error on my end, but the failures are visible on the test matrix. Would it be possible for you to change the content of that file For running the single test:
Please paste the output of the last command. |
I think the problem come from the definition of the macro Would it be possible for you to test the branch Thanks! |
Thanks for your reply! I've changed the content of that file $boost/libs/test/test/writing-test-ts/test-timeout-fail.cpp and increased the sleep time to 5000 and reran it also failed. For running the single test: *** 1 failure is detected in the test module "timeout-error" This issue was fixed on topic/fix-win32-timed-test branch ? Thanks, |
@spacelg thanks for the update. My guess is that the To get that branch and that test, this should be more or less this:
|
Thanks for your information! We reran it under topic/fix-win32-timed-test as below: D:\Boost\src\libs\test>git.exe checkout topic/fix-win32-timed-test D:\Boost\src\libs\test>git.exe branch
D:\Boost\src\libs\test>cd test D:\Boost\src\libs\test\test>......\b2.exe test-timeout-fail
...patience... *** 1 failure is detected in the test module "timeout-error" EXIT STATUS: 201 It prints this error: *** 1 failure is detected in the test module "timeout-error" EXIT STATUS: 201 Is this error expectted to fail ? Thanks, |
Thanks for the quick feedback. Indeed, the test is supposed to fail and we are capturing the fact that boost.test correctly detects this. |
Thanks for your reply! At present, this issue can now be reproduced on x86. ErrorMessage: Thanks, |
If you are able to run this test locally, I would be thankfull if you would paste the output of the test itself. From the same folder:
Thanks! (I am struggling reproducing this on my end) |
Thanks for your information! D:\Boost\out\x86rel\boost\bin.v2\libs\test\test\test-timeout-fail.test\msvc-14.1\release\threading-multi>test-timeout-fail.exe --log_level=all *** 1 failure is detected in the test module "timeout-error" |
Thank you very much, we are making progress there!
and rerun the test as before, the first time from Thanks! |
Thanks for your reply! If the fixed branch is merged into https://github.com/boostorg/boost/commits/master branch, please let us know. Thanks, |
Master contains the fix about the Many thanks! |
Any update? thanks |
Closing the issue as I believe this has been fixed. Please reopen with explanations if this is not the case. Thanks! |
Environment:
VS 2017 + Windows Server 2016
Issue description:
We build and run test for boost and we found one test failed to run after boost submodule test updated from fd945c to 412e3d boostorg/test@b0d837c .Could you please take a look?
Reproduce steps:
ErrorMessage:
testing.capture-output ..\out\x64rel\boost\bin.v2\libs\test\test\test-timeout-fail.test\msvc-14.1\release\threading-multi\test-timeout-fail.run
1 file(s) copied.
...failed testing.capture-output ..\out\x64rel\boost\bin.v2\libs\test\test\test-timeout-fail.test\msvc-14.1\release\threading-multi\test-timeout-fail.run...
...removing ..\out\x64rel\boost\bin.v2\libs\test\test\test-timeout-fail.test\msvc-14.1\release\threading-multi\test-timeout-fail.run
testing.capture-output ..\out\x64rel\boost\bin.v2\libs\test\test\test-timeout-suite.test\msvc-14.1\release\threading-multi\test-timeout-suite.run
log_x64_test_104.log
The text was updated successfully, but these errors were encountered: