msvcrt/tests: Don't test function directly when reporting errno.

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2016-05-03 19:03:14 +02:00 committed by Alexandre Julliard
parent 21e3de63de
commit a313c9b7f9
1 changed files with 2 additions and 1 deletions

View File

@ -2349,7 +2349,8 @@ static void test_close(void)
(HANDLE)_get_osfhandle(fd1), h);
ok((HANDLE)_get_osfhandle(fd2) == h, "handles mismatch (%p != %p)\n",
(HANDLE)_get_osfhandle(fd2), h);
ok(!close(fd1), "close(fd1) failed (%d)\n", errno);
ret1 = close(fd1);
ok(!ret1, "close(fd1) failed (%d)\n", errno);
ok(!GetHandleInformation(h, &flags), "GetHandleInformation succeeded\n");
ok(close(fd2), "close(fd2) succeeded\n");