This is an archive of the discontinued LLVM Phabricator instance.

FileCheck: dump command line context with empty input
ClosedPublic

Authored by davidxl on May 26 2016, 6:05 PM.

Details

Summary

FileCheck dumps minimal information when input is empty. We have many tests that include more than one FileCheck command lines. When such an error happens, figuring out which command actually is the problem can be hard sometimes (e.g, without running environment to reproduce).

This patch enables FileCheck to dump the full command line as a context line so that it is easier to identify the problem.

Diff Detail

Repository
rL LLVM

Event Timeline

davidxl updated this revision to Diff 58736.May 26 2016, 6:05 PM
davidxl retitled this revision from to FileCheck: dump command line context with empty input.
davidxl updated this object.
davidxl added a reviewer: dblaikie.
davidxl added a subscriber: llvm-commits.
silvas accepted this revision.May 26 2016, 10:53 PM
silvas added a reviewer: silvas.
silvas added a subscriber: silvas.

This sounds like a nice improvement.

This revision is now accepted and ready to land.May 26 2016, 10:53 PM
dblaikie edited edge metadata.May 27 2016, 11:09 AM
dblaikie added a subscriber: dblaikie.

Should we instead modify lit to indicate which command it stopped at? That
would seem more general/to cover other cases as well?

This revision was automatically updated to reflect the committed changes.