Proposal: winetest 'context'

Józef Kucia joseph.kucia at gmail.com
Sat Feb 25 06:34:25 CST 2017


On Tue, Feb 14, 2017 at 5:04 PM, Mark Jansen <learn0more+wine at gmail.com> wrote:
> Hello,
>
> Often when testing something, helper functions are introduced that are
> called with different data (for example when iterating over tables).
>
> Attached patch (winetest_set_context.diff) is a proposal that allows
> tests to specify a 'context', that will be printed in the failure
> message.
> This way, the actual test code does not have to prefix every case with
> a trace, or include the data in every test macro.
> The patch is written so that tests do not have to use this mechanism,
> so there is no need to convert all tests at once.
> Second attachment (winetest_ctx_example.diff) shows how an existing
> test could be converted to use this new technique.

For what it's worth, if we had a mechanism to set a context for test
messages, I would gladly use it in d3d11 tests.

Cheers,
Józef



More information about the wine-devel mailing list