This is an archive of the discontinued LLVM Phabricator instance.

[lit] Add --xfail-not/LIT_XFAIL_NOT
ClosedPublic

Authored by jdenny on Jul 14 2021, 3:34 PM.

Details

Summary

For example, I need this lately in my CI config:

LIT_XFAIL_NOT='libomptarget :: nvptx64-nvidia-cuda :: unified_shared_memory/api.c'

That test specifies an XFAIL directive, but I get an XPASS result.

Diff Detail

Event Timeline

jdenny created this revision.Jul 14 2021, 3:34 PM
jdenny requested review of this revision.Jul 14 2021, 3:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2021, 3:34 PM
jdenny added inline comments.Jul 14 2021, 3:42 PM
llvm/docs/CommandGuide/lit.rst
272

Sorry. Will fix later.

jhenderson added inline comments.Jul 15 2021, 12:37 AM
llvm/docs/CommandGuide/lit.rst
270

References to options should be preceded with :option:, so that they're auto-linked to them. Take a look at e.g. some of the LLVM binutils for examples of its usage.

272

I don't think you need the "However" bit of the last sentence (the rest of it is fine).

llvm/utils/lit/tests/xfail-cl.py
13

?

jdenny updated this revision to Diff 359028.Jul 15 2021, 9:58 AM
jdenny marked 3 inline comments as done.

Apply suggestions from review.

@jhenderson: Thanks!

This revision is now accepted and ready to land.Jul 16 2021, 12:25 AM
This revision was landed with ongoing or failed builds.Jul 16 2021, 4:14 PM
This revision was automatically updated to reflect the committed changes.