kernel/file test corrections

Uwe Bonnes bon at
Sun May 25 06:14:06 CDT 2003

>>>>> "Ferenc" == Ferenc Wagner <wferi at> writes:

    Ferenc> The following modifications are needed to make the file tests
    Ferenc> pass under Windows NT 4.0 SP6.  I can not test other versions,
    Ferenc> please write back if anything is wrong.

If different versions of windows return different error number, and we find
programms that depend on that behaviour. I think the values in the test file
were checked, probably on a Winxx version. Now you encounter errors on
NTXX. So you should follow the advice in documentation/testing.sgml:
        When writing tests you will also encounter differences between
        9x and Windows NT platforms. Such differences should be treated
        differently from the platform issues mentioned above. In particular
        you should remember that the goal of Wine is not to be a clone of
        specific Windows version but to run Windows applications on Unix.
        So, if an API returns a different error code on Windows 9x and
        Windows NT, your check should just verify that Wine returns one or
        the other:
ok ( GetLastError() == WIN9X_ERROR || GetLastError() == NT_ERROR, ...);

Uwe Bonnes                bon at

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the wine-devel mailing list