[3/4] msvcp120/tests: Add file_size test.

Piotr Caban piotr.caban at gmail.com
Tue Mar 17 17:02:58 CDT 2015


On 17/03/15 16:41, YongHao Hu wrote:
> +static void test_tr2_sys_file_size(void)
> +{
> +    unsigned long long val;
> +    val = p_tr2_sys_file_size("dir/d1/d1f1");
> +    ok(val==0, "test fail: file_size is %llu\n", val);
The tests needs to pass on wine. You can test your patch by running 
`make test` in dlls/msvcp120/tests directory. Because of that you can't 
test a function that is defined as stub in spec file. GetProcAddress 
will load such function but when called stub will cause an exception. 
When the function is implemented you can add tests that doesn't work on 
wine and mark them with todo_wine.


More information about the wine-devel mailing list