Repository navigation
with reduce --baseline <compiler> (#1100) - #3389
Merged
Merged
Conversation
…ed by that compiler, so a regression reduces to a program the good compiler takes with nothing else wrong in it (#1100)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1100.
with reduce … --contains "<diagnostic>" -- <compiler> check {file}keeps the smallest file that still prints the diagnostic, whatever else is wrong with it: during a regression hunt it deleted a declaration the program needs, and the result carried a second, unrelated error.--baseline <compiler>also requires<compiler> check {file}to accept each candidate, the original included (a baseline that refuses the original is an error that says so). A regression then reduces to a program the good compiler takes and the one under test does not.deep-debug-tool-testsruns that pair and asserts both results (the plain run must drop the declaration, so the fixture keeps distinguishing). The option is inwith reduce --help, indeep-debugging-tools.md, and in the inventory's list of debugging-tool flags beside--contains.Battery GREEN (1950a6c). The first battery was red on
spec-inventory-check(the flag was not yet listed); fixed and rerun.