Francois Gouget wrote:
My idea is that some platforms (e.g. Wine) could ask for stricter checks, by using strict_wine a bit like they use todo_wine to request looser checks.
So for instance you would do:
strict_wine ok(expected_cond || buggy(this_is_a_bug), ...);
Then on Windows the test would pass if either expected_cond is true or if this_is_a_bug is true. The same would happen for other platforms that this test runs on (e.g. ReactOS).
However on Wine the strict_wine clause would cause buggy to always return false. So on Wine this test would only succeed if expected_cond is true.
In addition to buggy I would propose a deprecated(cond) macro which would behave exactly the same but document valid but deprecated Windows behavior that we really don't want to reproduce.
I think that is an excellent idea and I can see it being immediately useful in rpcrt4, if not other areas.