Tests for msvcrt

Paul Chitescu paulc at voip.null.ro
Fri Jun 25 13:56:17 CDT 2010

On Thursday 24 June 2010 12:14:34 pm Piotr Caban wrote:
> On 06/24/10 10:49, Paul Chitescu wrote:
> > Hi!
> >
> > What would be the best way of testing MSVCRT.DLL considering that many
> > functions may or may be not present in the native version?
> There are already such tests in msvcrt. Take a look on e.g. 
> dlls/msvcrt/tests/misc.c. It's working well on older systems.
> There are already tests of msvcr90. MsvcrXX specific tests should go 
> there (unless the function is not present there).

The problem is that these functions will be available:
- on Wine in MSVCRT and MSVCRxx >= 80
- on Windows XP only in MSVCRxx >= 80 (if installed)
- on Windows 7 in MSVCRT and MSVCRxx >= 80 (if installed)
- no idea about Vista and other intermediate versions, service packs, etc.

What should the test do and where should it be located? In msvcrt/tests ? Or 
in msvcr90/tests ? Or create a msvcr80/tests ? Or...?

Would it be acceptable to test the functions only if available in msvcrt.dll ?

If the functions are not present should the code in msvcrt/tests attempt to 
load msvcr80 or msvcr90 or...?

What do you think?


More information about the wine-devel mailing list