[Lldb-commits] [PATCH] D16615: Refactor some of the skip / xfail decorators to reuse more code.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 27 08:41:20 PST 2016


zturner added a subscriber: zturner.
zturner added a comment.

Yea so basically what it does is allow you to use the same decorator with
arguments or without arguments.  Like this:

@expectedFailureWindows   # Python actually calls
expectedFailureWindows(func)
@expectedFailureWindows(debug_info='dwarf') # Python calls
expectedFailureWindows(debug_info='dwarf')(func)

If the goal is to delete all the highly specialized decorators (after all,
expectedFailureWindows is just expectedFailureAll(oslist=['windows'])) then
this problem goes away  by itself once everything is using
expectedFailureAll, since that will always be called with arguments.


http://reviews.llvm.org/D16615





More information about the lldb-commits mailing list