Alexandre Julliard : kernel32/tests: Add a couple of tests for write watches.

Alexandre Julliard julliard at winehq.org
Thu Nov 20 08:20:58 CST 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Nov 20 14:27:35 2008 +0100

kernel32/tests: Add a couple of tests for write watches.

---

 dlls/kernel32/tests/virtual.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/virtual.c b/dlls/kernel32/tests/virtual.c
index a18f2d6..3302306 100644
--- a/dlls/kernel32/tests/virtual.c
+++ b/dlls/kernel32/tests/virtual.c
@@ -938,6 +938,18 @@ static void test_write_watch(void)
         ok( GetLastError() == ERROR_INVALID_PARAMETER, "wrong error %u\n", GetLastError() );
 
         SetLastError( 0xdeadbeef );
+        count = 64;
+        ret = pGetWriteWatch( 0, base, size * 2, results, &count, &pagesize );
+        ok( ret == ~0u, "GetWriteWatch succeeded %u\n", ret );
+        ok( GetLastError() == ERROR_INVALID_PARAMETER, "wrong error %u\n", GetLastError() );
+
+        SetLastError( 0xdeadbeef );
+        count = 64;
+        ret = pGetWriteWatch( 0, base + size - pagesize, pagesize + 1, results, &count, &pagesize );
+        ok( ret == ~0u, "GetWriteWatch succeeded %u\n", ret );
+        ok( GetLastError() == ERROR_INVALID_PARAMETER, "wrong error %u\n", GetLastError() );
+
+        SetLastError( 0xdeadbeef );
         ret = pResetWriteWatch( base, 0 );
         ok( ret == ~0u, "ResetWriteWatch succeeded %u\n", ret );
         ok( GetLastError() == ERROR_INVALID_PARAMETER, "wrong error %u\n", GetLastError() );




More information about the wine-cvs mailing list