Ivan Leo : msvcrt/tests: Don't leave files on the disk.
Module: wine Branch: refs/heads/master Commit: f2bfc7b12d0461505edb3eaef8fca82d173cf902 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f2bfc7b12d0461505edb3eae... Author: Ivan Leo <ivanleo(a)gmail.com> Date: Tue Jun 27 16:05:14 2006 +0100 msvcrt/tests: Don't leave files on the disk. --- dlls/msvcrt/tests/file.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c index 61a4db9..1c0f155 100644 --- a/dlls/msvcrt/tests/file.c +++ b/dlls/msvcrt/tests/file.c @@ -472,14 +472,14 @@ static void test_get_osfhandle(void) DWORD bytes_written; HANDLE handle; - fd = _sopen(fname, _O_CREAT|_O_RDWR, _SH_DENYRW, 0); + fd = _sopen(fname, _O_CREAT|_O_RDWR, _SH_DENYRW, _S_IREAD | _S_IWRITE); handle = (HANDLE)_get_osfhandle(fd); WriteFile(handle, "bar", 3, &bytes_written, NULL); _close(fd); fd = _open(fname, _O_RDONLY, 0); ok(fd != -1, "Coudn't open '%s' after _get_osfhanle()\n", fname); - CloseHandle(handle); + _close(fd); _unlink(fname); }
participants (1)
-
Alexandre Julliard