Commit afd3c257 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 21d591ec
...@@ -135,7 +135,7 @@ static void test_FindFirstChangeNotification(void) ...@@ -135,7 +135,7 @@ static void test_FindFirstChangeNotification(void)
lstrcatA(dirname1, "dir"); lstrcatA(dirname1, "dir");
ret = CreateDirectoryA(dirname1, NULL); ret = CreateDirectoryA(dirname1, NULL);
ok(ret, "CreateDirectoryA error: %ld", GetLastError()); ok(ret, "CreateDirectoryA error: %ld\n", GetLastError());
/* What if we remove the directory we registered notification for? */ /* What if we remove the directory we registered notification for? */
thread = StartNotificationThread(dirname1, FALSE, FILE_NOTIFY_CHANGE_DIR_NAME); thread = StartNotificationThread(dirname1, FALSE, FILE_NOTIFY_CHANGE_DIR_NAME);
......
...@@ -33,57 +33,57 @@ START_TEST(heap) ...@@ -33,57 +33,57 @@ START_TEST(heap)
/* Heap*() functions */ /* Heap*() functions */
mem = HeapAlloc(GetProcessHeap(), 0, 0); mem = HeapAlloc(GetProcessHeap(), 0, 0);
ok(mem != NULL, "memory not allocated for size 0"); ok(mem != NULL, "memory not allocated for size 0\n");
mem = HeapReAlloc(GetProcessHeap(), 0, NULL, 10); mem = HeapReAlloc(GetProcessHeap(), 0, NULL, 10);
ok(mem == NULL, "memory allocated by HeapReAlloc"); ok(mem == NULL, "memory allocated by HeapReAlloc\n");
/* Global*() functions */ /* Global*() functions */
gbl = GlobalAlloc(GMEM_MOVEABLE, 0); gbl = GlobalAlloc(GMEM_MOVEABLE, 0);
ok(gbl != NULL, "global memory not allocated for size 0"); ok(gbl != NULL, "global memory not allocated for size 0\n");
gbl = GlobalReAlloc(gbl, 10, GMEM_MOVEABLE); gbl = GlobalReAlloc(gbl, 10, GMEM_MOVEABLE);
ok(gbl != NULL, "Can't realloc global memory"); ok(gbl != NULL, "Can't realloc global memory\n");
size = GlobalSize(gbl); size = GlobalSize(gbl);
ok(size >= 10 && size <= 16, "Memory not resized to size 10, instead size=%ld", size); ok(size >= 10 && size <= 16, "Memory not resized to size 10, instead size=%ld\n", size);
todo_wine todo_wine
{ {
gbl = GlobalReAlloc(gbl, 0, GMEM_MOVEABLE); gbl = GlobalReAlloc(gbl, 0, GMEM_MOVEABLE);
ok(gbl != NULL, "GlobalReAlloc should not fail on size 0"); ok(gbl != NULL, "GlobalReAlloc should not fail on size 0\n");
} }
size = GlobalSize(gbl); size = GlobalSize(gbl);
ok(size == 0, "Memory not resized to size 0, instead size=%ld", size); ok(size == 0, "Memory not resized to size 0, instead size=%ld\n", size);
ok(GlobalFree(gbl) == NULL, "Memory not freed"); ok(GlobalFree(gbl) == NULL, "Memory not freed\n");
size = GlobalSize(gbl); size = GlobalSize(gbl);
ok(size == 0, "Memory should have been freed, size=%ld", size); ok(size == 0, "Memory should have been freed, size=%ld\n", size);
gbl = GlobalReAlloc(0, 10, GMEM_MOVEABLE); gbl = GlobalReAlloc(0, 10, GMEM_MOVEABLE);
ok(gbl == NULL, "global realloc allocated memory"); ok(gbl == NULL, "global realloc allocated memory\n");
/* Local*() functions */ /* Local*() functions */
gbl = LocalAlloc(GMEM_MOVEABLE, 0); gbl = LocalAlloc(GMEM_MOVEABLE, 0);
ok(gbl != NULL, "local memory not allocated for size 0"); ok(gbl != NULL, "local memory not allocated for size 0\n");
gbl = LocalReAlloc(gbl, 10, GMEM_MOVEABLE); gbl = LocalReAlloc(gbl, 10, GMEM_MOVEABLE);
ok(gbl != NULL, "Can't realloc local memory"); ok(gbl != NULL, "Can't realloc local memory\n");
size = LocalSize(gbl); size = LocalSize(gbl);
ok(size >= 10 && size <= 16, "Memory not resized to size 10, instead size=%ld", size); ok(size >= 10 && size <= 16, "Memory not resized to size 10, instead size=%ld\n", size);
todo_wine todo_wine
{ {
gbl = LocalReAlloc(gbl, 0, GMEM_MOVEABLE); gbl = LocalReAlloc(gbl, 0, GMEM_MOVEABLE);
ok(gbl != NULL, "LocalReAlloc should not fail on size 0"); ok(gbl != NULL, "LocalReAlloc should not fail on size 0\n");
} }
size = LocalSize(gbl); size = LocalSize(gbl);
ok(size == 0, "Memory not resized to size 0, instead size=%ld", size); ok(size == 0, "Memory not resized to size 0, instead size=%ld\n", size);
ok(LocalFree(gbl) == NULL, "Memory not freed"); ok(LocalFree(gbl) == NULL, "Memory not freed\n");
size = LocalSize(gbl); size = LocalSize(gbl);
ok(size == 0, "Memory should have been freed, size=%ld", size); ok(size == 0, "Memory should have been freed, size=%ld\n", size);
gbl = LocalReAlloc(0, 10, GMEM_MOVEABLE); gbl = LocalReAlloc(0, 10, GMEM_MOVEABLE);
ok(gbl == NULL, "local realloc allocated memory"); ok(gbl == NULL, "local realloc allocated memory\n");
} }
...@@ -79,7 +79,7 @@ static void test_profile_int(void) ...@@ -79,7 +79,7 @@ static void test_profile_int(void)
res = GetPrivateProfileIntA(profileInt[i].section, profileInt[i].key, res = GetPrivateProfileIntA(profileInt[i].section, profileInt[i].key,
profileInt[i].defaultVal, profileInt[i].iniFile); profileInt[i].defaultVal, profileInt[i].iniFile);
ok(res == profileInt[i].result, "test<%02d>: ret<%010u> exp<%010u>", ok(res == profileInt[i].result, "test<%02d>: ret<%010u> exp<%010u>\n",
i, res, profileInt[i].result); i, res, profileInt[i].result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment