[PATCH 2/4] msvcp110: Add tr2_sys__Stat and tr2_sys__Lstat implementation and test.(try 2)

Piotr Caban piotr.caban at gmail.com
Sun Jul 19 04:06:06 CDT 2015


On 07/17/15 20:20, YongHao Hu wrote:
> ---
>   dlls/msvcp110/msvcp110.spec         |   8 +-
>   dlls/msvcp120/msvcp120.spec         |   8 +-
>   dlls/msvcp120/tests/msvcp120.c      | 142
> ++++++++++++++++++++++++++++++++++++
>   dlls/msvcp120_app/msvcp120_app.spec |   8 +-
>   dlls/msvcp90/ios.c                  |  47 ++++++++++++
>   5 files changed, 201 insertions(+), 12 deletions(-)
There's a compilation warning:
msvcp120.c: In function 'test_tr2_sys__Stat':
msvcp120.c:777:5: warning: ISO C90 forbids mixed declarations and code 
[-Wdeclaration-after-statement]
      BYTE buf[sizeof(struct REPARSE_MOUNTPOINT_DATA_BUFFER) + MAX_PATH 
* sizeof(WCHAR)];

The tests are also not working for me on Windows 7:
msvcp120.c:770: Test failed: CreateSymbolicLinkA failed
msvcp120.c:771: Test failed: CreateSymbolicLinkA failed
msvcp120.c:823: Test failed: tr2_sys__Stat(): test 6 expect: 2, got 1
msvcp120.c:834: Test failed: tr2_sys__Lstat(): test 6 expect: 2, got 1
msvcp120.c:823: Test failed: tr2_sys__Stat(): test 7 expect: 3, got 1
msvcp120.c:834: Test failed: tr2_sys__Lstat(): test 7 expect: 3, got 1
msvcp120.c:845: Test failed: expect tr2_test_dir/f1_link to exist
msvcp120.c:846: Test failed: expect tr2_test_dir/dir_link to exist
msvcp120: 380 tests executed (0 marked as todo, 8 failures), 0 skipped.

There are some more test failures when tests are run from filesystem 
that doesn't support reparse points:
msvcp120.c:621: Test failed: test_tr2_sys__Copy_file(): test 5 expect: 
5, got 80
msvcp120.c:623: Test failed: test_tr2_sys__Copy_file(): test 11 expect: 
3, got 2
msvcp120.c:770: Test failed: CreateSymbolicLinkA failed
msvcp120.c:771: Test failed: CreateSymbolicLinkA failed
msvcp120.c:785: Test failed: DeviceIoControl failed
msvcp120.c:792: Test failed: DeviceIoControl failed
msvcp120.c:823: Test failed: tr2_sys__Stat(): test 6 expect: 2, got 1
msvcp120.c:834: Test failed: tr2_sys__Lstat(): test 6 expect: 2, got 1
msvcp120.c:823: Test failed: tr2_sys__Stat(): test 7 expect: 3, got 1
msvcp120.c:834: Test failed: tr2_sys__Lstat(): test 7 expect: 3, got 1
msvcp120.c:845: Test failed: expect tr2_test_dir/f1_link to exist
msvcp120.c:846: Test failed: expect tr2_test_dir/dir_link to exist
msvcp120: 380 tests executed (0 marked as todo, 12 failures), 0 skipped.



More information about the wine-devel mailing list