localspl/tests: [2/2] Rename unclear string

Detlef Riekenberg wine.dev at web.de
Thu Dec 21 17:47:57 CST 2006


using "invalid" in a valid servername, that 
only does not exist was a misleading idea.


Changelog:
- localspl/tests: [2/2] Rename unclear string




-- 
 
By by ... Detlef

-------------- next part --------------
>From 424882e90ab7c8ad85665e7a14cbf92a5a9f92af Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Fri, 22 Dec 2006 00:04:15 +0100
Subject: [PATCH] localspl/tests: Rename unclear string
---
 dlls/localspl/tests/localmon.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/localspl/tests/localmon.c b/dlls/localspl/tests/localmon.c
index 4ca6644..5aecda6 100644
--- a/dlls/localspl/tests/localmon.c
+++ b/dlls/localspl/tests/localmon.c
@@ -62,7 +62,6 @@ static WCHAR cmd_MonitorUIW[] = {'M','o'
 static WCHAR cmd_MonitorUI_lcaseW[] = {'m','o','n','i','t','o','r','u','i',0};
 static WCHAR does_not_existW[] = {'d','o','e','s','_','n','o','t','_','e','x','i','s','t',0};
 static WCHAR emptyW[] = {0};
-static WCHAR invalid_serverW[] = {'\\','\\','i','n','v','a','l','i','d','_','s','e','r','v','e','r',0};
 static WCHAR Monitors_LocalPortW[] = { \
                                 'S','y','s','t','e','m','\\',
                                 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\',
@@ -75,6 +74,8 @@ static WCHAR portname_com1W[] = {'C','O'
 static WCHAR portname_fileW[] = {'F','I','L','E',':',0};
 static WCHAR portname_lpt1W[] = {'L','P','T','1',':',0};
 
+static WCHAR server_does_not_existW[] = {'\\','\\','d','o','e','s','_','n','o','t','_','e','x','i','s','t',0};
+
 /* ########################### */
 
 static void test_AddPort(void)
@@ -261,7 +262,7 @@ static void test_EnumPorts(void)
         pcbNeeded = 0xdeadbeef;
         pcReturned = 0xdeadbeef;
         SetLastError(0xdeadbeef);
-        res = pEnumPorts(invalid_serverW, level, buffer, cbBuf+1, &pcbNeeded, &pcReturned);
+        res = pEnumPorts(server_does_not_existW, level, buffer, cbBuf+1, &pcbNeeded, &pcReturned);
         ok( res, "(%d) returned %d with %d and %d, %d (expected '!= 0')\n",
             level, res, GetLastError(), pcbNeeded, pcReturned);
 
-- 
1.4.1



More information about the wine-patches mailing list