[cfe-dev] How to check paths in tests
Sean Silva
silvas at purdue.edu
Mon Jun 24 19:11:15 PDT 2013
On Mon, Jun 24, 2013 at 3:22 PM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> Sean Silva suggests using something like {{{foo/bar/zed}}} to make the
> substitution more local.
>
I'm actually not sure I like this too much anymore. It's extremely cryptic.
My primary concern was something like:
CHECK: error: frobnication at foo/bar/baz
where I don't think you would want the test to just say
CHECK-PATH: foo/bar/baz
but rather want to check that "error: frobnication at" is there too.
However, having CHECK-PATH just replace `/` with the appropriate regex
would deal with this. It would lead to a slight loosening of cases like:
CHECK-PATH: error: division operator `/` at foo/bar/baz
would accept
CHECK-PATH: error: division operator `\\` at foo/bar/baz
but I think that this is not likely to be an issue in practice.
-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130624/8eeb533b/attachment.html>
More information about the cfe-dev
mailing list