-
Notifications
You must be signed in to change notification settings - Fork 78
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
support for timeout #757
Comments
Would be very useful to have this supported. |
Do you mean this ( fuzztest/fuzztest/init_fuzztest.cc Line 52 in 4923853
|
I think the flag is not failing the test when the time limit has reached, but just stop the fuzzer? Not tried yet. |
I see. So you mean the timeout for a single execution of the fuzztest? |
Yes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no support for timeout in gtest, and the simplest way is to use async task timeout. However, the thread running the async task will block the fuzzer from knowing the task has failed, and not print the failing test case.
My current workaround is to use pthread kill to kill the async task thread, but this is only safe in some cases and platform specific. It would be better if this library can provide a way of handling timeout.
The text was updated successfully, but these errors were encountered: