Mike Kaplinskiy : ntdll/tests: Fix NtWriteFile checks.

Alexandre Julliard julliard at winehq.org
Tue Aug 11 10:47:10 CDT 2009


Module: wine
Branch: master
Commit: b9c3e9310a1a231a6eb7f01169c65786b292b840
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b9c3e9310a1a231a6eb7f01169c65786b292b840

Author: Mike Kaplinskiy <mike.kaplinskiy at gmail.com>
Date:   Mon Aug 10 13:17:52 2009 -0400

ntdll/tests: Fix NtWriteFile checks.

---

 dlls/ntdll/tests/file.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 174daa5..a0e713a 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -390,8 +390,8 @@ static void read_file_test(void)
     iosb.Information = 0xdeadbeef;
     offset.QuadPart = 0;
     ResetEvent( event );
-    pNtWriteFile( handle, event, apc, &apc_count, &iosb, text, strlen(text), &offset, NULL );
-    ok( status == STATUS_PENDING, "wrong status %x\n", status );
+    status = pNtWriteFile( handle, event, apc, &apc_count, &iosb, text, strlen(text), &offset, NULL );
+    ok( status == STATUS_SUCCESS || status == STATUS_PENDING, "wrong status %x\n", status );
     ok( U(iosb).Status == STATUS_SUCCESS, "wrong status %x\n", U(iosb).Status );
     ok( iosb.Information == strlen(text), "wrong info %lu\n", iosb.Information );
     ok( is_signaled( event ), "event is signaled\n" );
@@ -448,8 +448,9 @@ static void read_file_test(void)
     U(iosb).Status = 0xdeadbabe;
     iosb.Information = 0xdeadbeef;
     offset.QuadPart = 0;
-    pNtWriteFile( handle, event, apc, &apc_count, &iosb, text, strlen(text), &offset, NULL );
+    status = pNtWriteFile( handle, event, apc, &apc_count, &iosb, text, strlen(text), &offset, NULL );
     ok( status == STATUS_END_OF_FILE ||
+        status == STATUS_SUCCESS ||
         status == STATUS_PENDING,  /* vista */
         "wrong status %x\n", status );
     ok( U(iosb).Status == STATUS_SUCCESS, "wrong status %x\n", U(iosb).Status );




More information about the wine-cvs mailing list