google / google/fuzztest

support for timeout

Open
#757 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.1k
Forks
137
Avg merge
3d 6h
Merged PRs (30d)
22

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.