-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failure tagging, via
theft_tag_failure(t, ID)
.
Previously, theft had no way of distinguishing failures, so failures that occurred with fairly minimal input would tend to shadow failures only discovered with more complex instances. Now, if a failure is tagged (by calling `theft_tag_failure(t, ID)`), then shrinking will ignore changes that lead to failures with different tags. Untagged failures will still be used, because they may be previously undiscovered. Setting the failure tag to THEFT_FAILURE_TAG_NONE clears the tag, so wrapping calls: theft_tag_failure(t, TAG_CRASHED_INSIDE_FUNCTION_some_fun); enum some_fun_res res = some_fun(some, arguments); theft_tag_failure(t, THEFT_FAILURE_TAG_NONE); would tag failures caused by the wrapped function crashing. Closes #14.
- Loading branch information
1 parent
1065295
commit b3c669a
Showing
8 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters