Francois Gouget : kernel32/tests: Remove a couple of incorrect CreateFile() console tests.

Alexandre Julliard julliard at winehq.org
Fri Nov 1 15:17:06 CDT 2013


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Nov  1 10:36:35 2013 +0100

kernel32/tests: Remove a couple of incorrect CreateFile() console tests.

---

 dlls/kernel32/tests/console.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/console.c b/dlls/kernel32/tests/console.c
index 5cdfa62..d38315f 100644
--- a/dlls/kernel32/tests/console.c
+++ b/dlls/kernel32/tests/console.c
@@ -1160,14 +1160,13 @@ static void test_CreateFileW(void)
         {coninW,   GENERIC_READ | GENERIC_WRITE, FALSE,      CREATE_NEW,        0,                              FALSE},
         {coninW,   GENERIC_READ | GENERIC_WRITE, FALSE,      CREATE_ALWAYS,     0,                              FALSE},
         {coninW,   GENERIC_READ | GENERIC_WRITE, FALSE,      OPEN_ALWAYS,       0,                              FALSE},
-        {coninW,   GENERIC_READ | GENERIC_WRITE, FALSE,      TRUNCATE_EXISTING, 0,                              FALSE},
         {conoutW,  0,                            FALSE,      0,                 ERROR_INVALID_PARAMETER,        TRUE},
         {conoutW,  0,                            FALSE,      OPEN_ALWAYS,       0,                              FALSE},
         {conoutW,  GENERIC_READ | GENERIC_WRITE, FALSE,      0,                 ERROR_INVALID_PARAMETER,        TRUE},
         {conoutW,  GENERIC_READ | GENERIC_WRITE, FALSE,      CREATE_NEW,        0,                              FALSE},
         {conoutW,  GENERIC_READ | GENERIC_WRITE, FALSE,      CREATE_ALWAYS,     0,                              FALSE},
         {conoutW,  GENERIC_READ | GENERIC_WRITE, FALSE,      OPEN_ALWAYS,       0,                              FALSE},
-        {conoutW,  GENERIC_READ | GENERIC_WRITE, FALSE,      TRUNCATE_EXISTING, 0,                              FALSE},
+        /* TRUNCATE_EXISTING is forbidden starting with Windows 8 */
     };
 
     int index;




More information about the wine-cvs mailing list