This is an archive of the discontinued LLVM Phabricator instance.

Avoid false positive/negative test results from line directive interference
ClosedPublic

Authored by gberry on Jun 15 2015, 8:39 AM.

Details

Reviewers
mcrosier
Summary

Change tested for strings in case the string block or block_1 or block_2 appears in the path to the test file, which would cause it to appear in the line directive, causing the test to fail.
Use FileCheck to get rid of one run of clang.

Diff Detail

Event Timeline

gberry updated this revision to Diff 27676.Jun 15 2015, 8:39 AM
gberry retitled this revision from to Disable preprocessor line directives to avoid false positive/negative test results.
gberry updated this object.
gberry edited the test plan for this revision. (Show Details)
gberry added subscribers: Unknown Object (MLST), mcrosier.
mcrosier accepted this revision.Jun 15 2015, 9:52 AM
mcrosier added a reviewer: mcrosier.

LGTM. Might be worthwhile to FileCheckize the test, which would allow you to reduce the number of RUN lines.

This revision is now accepted and ready to land.Jun 15 2015, 9:52 AM
gberry updated this revision to Diff 27937.Jun 18 2015, 8:23 AM
gberry retitled this revision from Disable preprocessor line directives to avoid false positive/negative test results to Avoid false positive/negative test results from line directive interference.
gberry updated this object.
gberry edited edge metadata.

FileCheck-ize and use strings with spaces to reduce likelihood of line directive conflict.

mcrosier closed this revision.Jun 26 2015, 11:18 AM

Committed r240801