Success in todo depending on the Wine platform

Francois Gouget fgouget at free.fr
Mon Feb 15 17:31:53 CST 2016


What should we do if a test succeeds in a todo_wine on Mac but fails on 
Linux, FreeBSD and Solaris.

Specifically I'm thinking about this test:
    /* Check if we have some return values */
    trace("WorkingSetSize : %ld\n", pvi.WorkingSetSize);
    todo_wine
        ok( pvi.WorkingSetSize > 0, "Expected a WorkingSetSize > 0\n");

Which the following commit caused to succeed on OSX:

commit 1f9fe124b2bd7e69dad5c90b7897380e32d43481
Author: Snorri Sturluson <snorri.sturluson at ccpgames.com>
Date:   Thu Jan 28 17:22:10 2016 +0000

    ntdll: Fill in memory counters under OS X.

I find it pretty ironic that the OSX results, which already have more 
than their fair share or failures, are saddled with one extra failure 
when it is in fact the only Wine platform where the test succeeds!

I guess implementing fill_VM_COUNTERS() on Linux, FreeBSD and Solaris 
would be one solution. It might not even be that hard depending on how 
correct you want the implementation to be.


But do we have other solutions? I initially thought setting 
WINETEST_PLATFORM to Linux, FreeBSD, etc. could do the trick. But it 
currently it is only ever be set to Windows or Wine. Even worse, 
todo_wine explicitly checks if it is set to "wine" so anything else 
would break it. Should todo_wine check for 'not windows' instead?


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                      Computers are like airconditioners
                They stop working properly if you open WINDOWS



More information about the wine-devel mailing list