Add trailing '\n's to ok() calls

Francois Gouget fgouget at free.fr
Wed Nov 9 11:36:34 CST 2005


Changelog:

  * dlls/comctl32/tests/toolbar.c
    dlls/d3d9/device.c
    dlls/kernel/tests/thread.c
    dlls/msxml3/tests/domdoc.c
    dlls/setupapi/tests/parser.c
    dlls/user/tests/msg.c

    Francois Gouget <fgouget at free.fr>
    Add trailing '\n's to ok() and TRACE() calls.


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                  There are 10 types of people in the world...
                those who understand binary and those who don't.
-------------- next part --------------
Index: dlls/comctl32/tests/toolbar.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/tests/toolbar.c,v
retrieving revision 1.1
diff -u -p -r1.1 toolbar.c
--- dlls/comctl32/tests/toolbar.c	21 Oct 2005 15:45:11 -0000	1.1
+++ dlls/comctl32/tests/toolbar.c	22 Oct 2005 05:03:59 -0000
@@ -59,7 +59,7 @@ static LRESULT CALLBACK MyWndProc(HWND h
             0, NULL, (UINT)0,
             buttons, sizeof(buttons)/sizeof(buttons[0]),
             0, 0, 20, 16, sizeof(TBBUTTON));
-        ok(hToolbar != NULL, "Toolbar creation");
+        ok(hToolbar != NULL, "Toolbar creation\n");
 
         SendMessage(hToolbar, TB_ADDSTRINGA, 0, (LPARAM)"test\000");
 
Index: dlls/d3d9/device.c
===================================================================
RCS file: /var/cvs/wine/dlls/d3d9/device.c,v
retrieving revision 1.31
diff -u -p -r1.31 device.c
--- dlls/d3d9/device.c	23 Aug 2005 09:34:57 -0000	1.31
+++ dlls/d3d9/device.c	9 Nov 2005 16:33:45 -0000
@@ -104,7 +104,7 @@ HRESULT  WINAPI  IDirect3DDevice9Impl_Ge
         FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
         *ppD3D9 = NULL;
     }
-    TRACE("(%p) returning %p\b",This , *ppD3D9);
+    TRACE("(%p) returning %p\n", This, *ppD3D9);
     return hr;
 }
 
Index: dlls/kernel/tests/thread.c
===================================================================
RCS file: /var/cvs/wine/dlls/kernel/tests/thread.c,v
retrieving revision 1.28
diff -u -p -r1.28 thread.c
--- dlls/kernel/tests/thread.c	2 Nov 2005 20:54:12 -0000	1.28
+++ dlls/kernel/tests/thread.c	9 Nov 2005 06:21:34 -0000
@@ -236,7 +236,7 @@ static VOID test_CreateThread_basic(void
   thread[0] = CreateThread(NULL,0,threadFunc2,NULL,0,NULL);
   GLE = GetLastError();
   if (thread[0]) { /* NT */
-    ok(GLE==0xFACEaBAD, "CreateThread set last error to %ld, expected 4207848365", GLE);
+    ok(GLE==0xFACEaBAD, "CreateThread set last error to %ld, expected 4207848365\n", GLE);
     ret = WaitForSingleObject(thread[0],100);
     ok(ret==WAIT_OBJECT_0, "threadFunc2 did not exit during 100 ms\n");
     ret = GetExitCodeThread(thread[0],&exitCode);
@@ -245,7 +245,7 @@ static VOID test_CreateThread_basic(void
     ok(CloseHandle(thread[0])!=0,"Error closing thread handle\n");
   }
   else { /* 9x */
-    ok(GLE==ERROR_INVALID_PARAMETER, "CreateThread set last error to %ld, expected 87", GLE);
+    ok(GLE==ERROR_INVALID_PARAMETER, "CreateThread set last error to %ld, expected 87\n", GLE);
   }
 }
 
Index: dlls/msxml3/tests/domdoc.c
===================================================================
RCS file: /var/cvs/wine/dlls/msxml3/tests/domdoc.c,v
retrieving revision 1.9
diff -u -p -r1.9 domdoc.c
--- dlls/msxml3/tests/domdoc.c	8 Nov 2005 19:59:36 -0000	1.9
+++ dlls/msxml3/tests/domdoc.c	9 Nov 2005 05:45:46 -0000
@@ -157,7 +157,7 @@ void test_domdoc( void )
 
     /* check if nodename is correct */
     r = IXMLDOMDocument_get_nodeName( doc, NULL );
-    ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code");
+    ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
 
     /* content doesn't matter here */
     str = SysAllocString( szNonExistentFile );
@@ -307,7 +307,7 @@ void test_domnode( void )
 
         /* check if nodename is correct */
         r = IXMLDOMElement_get_nodeName( element, NULL );
-        ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code");
+        ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
     
         /* content doesn't matter here */
         str = SysAllocString( szNonExistentFile );
@@ -358,7 +358,7 @@ void test_domnode( void )
         ok ( node != NULL, "should be attribute\n");
 
         r = IXMLDOMNode_get_nodeName( node, NULL );
-        ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code");
+        ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
 
         /* content doesn't matter here */
         str = SysAllocString( szNonExistentFile );
Index: dlls/setupapi/tests/parser.c
===================================================================
RCS file: /var/cvs/wine/dlls/setupapi/tests/parser.c,v
retrieving revision 1.1
diff -u -p -r1.1 parser.c
--- dlls/setupapi/tests/parser.c	7 Nov 2005 16:41:37 -0000	1.1
+++ dlls/setupapi/tests/parser.c	8 Nov 2005 06:21:13 -0000
@@ -218,13 +218,13 @@ static void test_section_names(void)
         trace( "hinf=%p ret=%ld err=%lx\n", hinf, ret, err );
         if (ret != -1)
         {
-            ok( !section_names[i].error, "line %u: section name %s found",
+            ok( !section_names[i].error, "line %u: section name %s found\n",
                 i, section_names[i].section );
-            ok( !err, "line %u: bad error code %lx", i, err );
+            ok( !err, "line %u: bad error code %lx\n", i, err );
         }
         else
         {
-            ok( section_names[i].error, "line %u: section name %s not found",
+            ok( section_names[i].error, "line %u: section name %s not found\n",
                 i, section_names[i].section );
             ok( err == section_names[i].error, "line %u: bad error %lx/%lx\n",
                 i, err, section_names[i].error );
Index: dlls/user/tests/msg.c
===================================================================
RCS file: /var/cvs/wine/dlls/user/tests/msg.c,v
retrieving revision 1.100
diff -u -p -r1.100 msg.c
--- dlls/user/tests/msg.c	31 Oct 2005 15:45:16 -0000	1.100
+++ dlls/user/tests/msg.c	9 Nov 2005 06:21:40 -0000
@@ -3722,7 +3722,7 @@ static void test_paint_messages(void)
      */
     trace("testing ValidateRect(0, NULL)\n");
     SetRectEmpty( &rect );
-    ok(ValidateRect(0, &rect), "ValidateRect(0, &rc) should not fail");
+    ok(ValidateRect(0, &rect), "ValidateRect(0, &rc) should not fail\n");
     check_update_rgn( hwnd, hrgn );
     ok_sequence( WmInvalidateErase, "InvalidateErase", FALSE );
     while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg );
@@ -3740,7 +3740,7 @@ static void test_paint_messages(void)
 
     trace("testing ValidateRgn(0, NULL)\n");
     SetLastError(0xdeadbeef);
-    ok(!ValidateRgn(0, NULL), "ValidateRgn(0, NULL) should fail");
+    ok(!ValidateRgn(0, NULL), "ValidateRgn(0, NULL) should fail\n");
     ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE, "wrong error code %ld\n", GetLastError());
     check_update_rgn( hwnd, 0 );
     while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg );


More information about the wine-patches mailing list