Author: rharabien
Date: Sun Oct 9 09:41:49 2011
New Revision: 54060
URL:
http://svn.reactos.org/svn/reactos?rev=54060&view=rev
Log:
[USER32_APITEST] Fix GetSystemMetrics test output which was interpret by testman as
crash.
Modified:
trunk/rostests/apitests/user32/GetSystemMetrics.c
Modified: trunk/rostests/apitests/user32/GetSystemMetrics.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/GetSystem…
==============================================================================
--- trunk/rostests/apitests/user32/GetSystemMetrics.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/GetSystemMetrics.c [iso-8859-1] Sun Oct 9 09:41:49
2011
@@ -21,22 +21,22 @@
hDC = GetDC(0);
ret = GetSystemMetrics(0);
- ok(ret > 0, "ret = %d", ret);
+ ok(ret > 0, "ret = %d\n", ret);
ret = GetSystemMetrics(64);
- ok(ret == 0, "ret = %d", ret);
+ ok(ret == 0, "ret = %d\n", ret);
ret = GetSystemMetrics(65);
- ok(ret == 0, "ret = %d", ret);
+ ok(ret == 0, "ret = %d\n", ret);
ret = GetSystemMetrics(66);
- ok(ret == 0, "ret = %d", ret);
+ ok(ret == 0, "ret = %d\n", ret);
ret = GetSystemMetrics(SM_CXSCREEN);
- ok(ret == GetDeviceCaps(hDC, HORZRES), "ret = %d", ret);
+ ok(ret == GetDeviceCaps(hDC, HORZRES), "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CYSCREEN);
- ok(ret == GetDeviceCaps(hDC, VERTRES), "ret = %d", ret);
+ ok(ret == GetDeviceCaps(hDC, VERTRES), "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CXVSCROLL);
@@ -53,12 +53,12 @@
ret = GetSystemMetrics(SM_CXBORDER);
SystemParametersInfoW(SPI_GETFOCUSBORDERWIDTH, 0, &UintVal, 0);
- ok(ret == UintVal, "ret = %d", ret);
+ ok(ret == UintVal, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CYBORDER);
SystemParametersInfoW(SPI_GETFOCUSBORDERHEIGHT, 0, &UintVal, 0);
- ok(ret == UintVal, "ret = %d", ret);
+ ok(ret == UintVal, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CXDLGFRAME);
@@ -99,11 +99,11 @@
SystemParametersInfoW(SPI_GETWORKAREA, 0, &rect, 0);
ret = GetSystemMetrics(SM_CXFULLSCREEN);
- ok(ret == rect.right, "ret = %d", ret);
+ ok(ret == rect.right, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CYFULLSCREEN);
- ok(ret == rect.bottom - rect.top - GetSystemMetrics(SM_CYCAPTION), "ret =
%d", ret);
+ ok(ret == rect.bottom - rect.top - GetSystemMetrics(SM_CYCAPTION), "ret =
%d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CYKANJIWINDOW);
@@ -305,7 +305,7 @@
ret = GetSystemMetrics(SM_SHOWSOUNDS);
SystemParametersInfoW(SPI_GETSHOWSOUNDS, 0, &BoolVal, 0);
- ok(ret == BoolVal, "ret = %d", ret);
+ ok(ret == BoolVal, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CXMENUCHECK);
@@ -366,12 +366,12 @@
#if(_WIN32_WINNT >= 0x0501)
ret = GetSystemMetrics(SM_CXFOCUSBORDER);
SystemParametersInfoW(SPI_GETFOCUSBORDERWIDTH, 0, &UintVal, 0);
- ok(ret == UintVal, "ret = %d", ret);
+ ok(ret == UintVal, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_CYFOCUSBORDER);
SystemParametersInfoW(SPI_GETFOCUSBORDERHEIGHT, 0, &UintVal, 0);
- ok(ret == UintVal, "ret = %d", ret);
+ ok(ret == UintVal, "ret = %d\n", ret);
ok(GetLastError() == 0, "GetLastError() = %ld\n", GetLastError());
ret = GetSystemMetrics(SM_TABLETPC);