kernel/file test corrections

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun May 25 06:14:06 CDT 2003


>>>>> "Ferenc" == Ferenc Wagner <wferi at tba.elte.hu> 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:
====
      <para>
        When writing tests you will also encounter differences between
Windows
        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
any
        specific Windows version but to run Windows applications on Unix.
      </para>
      <para>
        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:
<screen>
ok ( GetLastError() == WIN9X_ERROR || GetLastError() == NT_ERROR, ...);
</screen>
      </para>
      <para>
====
Bye

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

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



More information about the wine-devel mailing list