Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
47e11622
Commit
47e11622
authored
Jan 23, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trailing '\n's to ok() calls.
parent
a53c8849
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
108 additions
and
108 deletions
+108
-108
drive.c
dlls/kernel/tests/drive.c
+20
-20
environ.c
dlls/kernel/tests/environ.c
+39
-39
class.c
dlls/user/tests/class.c
+30
-30
listbox.c
dlls/user/tests/listbox.c
+1
-1
resource.c
dlls/user/tests/resource.c
+3
-3
sysparams.c
dlls/user/tests/sysparams.c
+11
-11
win.c
dlls/user/tests/win.c
+0
-0
wsprintf.c
dlls/user/tests/wsprintf.c
+4
-4
No files found.
dlls/kernel/tests/drive.c
View file @
47e11622
...
...
@@ -32,16 +32,16 @@ void test_GetDriveTypeA(void)
UINT
type
;
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld"
,
GetLastError
());
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
type
=
GetDriveTypeA
(
drive
);
ok
(
type
>
0
&&
type
<=
6
,
"not a valid drive %c: type %u"
,
drive
[
0
],
type
);
ok
(
type
>
0
&&
type
<=
6
,
"not a valid drive %c: type %u
\n
"
,
drive
[
0
],
type
);
if
(
!
(
logical_drives
&
1
))
ok
(
type
==
DRIVE_NO_ROOT_DIR
,
"GetDriveTypeA should return DRIVE_NO_ROOT_DIR for inexistant drive %c: but not %u"
,
"GetDriveTypeA should return DRIVE_NO_ROOT_DIR for inexistant drive %c: but not %u
\n
"
,
drive
[
0
],
type
);
logical_drives
>>=
1
;
...
...
@@ -55,7 +55,7 @@ void test_GetDriveTypeW(void)
UINT
type
;
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld"
,
GetLastError
());
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
...
...
@@ -65,11 +65,11 @@ void test_GetDriveTypeW(void)
/* Must be Win9x which doesn't support the Unicode functions */
return
;
}
ok
(
type
>
0
&&
type
<=
6
,
"not a valid drive %c: type %u"
,
drive
[
0
],
type
);
ok
(
type
>
0
&&
type
<=
6
,
"not a valid drive %c: type %u
\n
"
,
drive
[
0
],
type
);
if
(
!
(
logical_drives
&
1
))
ok
(
type
==
DRIVE_NO_ROOT_DIR
,
"GetDriveTypeW should return DRIVE_NO_ROOT_DIR for inexistant drive %c: but not %u"
,
"GetDriveTypeW should return DRIVE_NO_ROOT_DIR for inexistant drive %c: but not %u
\n
"
,
drive
[
0
],
type
);
logical_drives
>>=
1
;
...
...
@@ -84,21 +84,21 @@ void test_GetDiskFreeSpaceA(void)
DWORD
logical_drives
;
ret
=
GetDiskFreeSpaceA
(
NULL
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceA
(
""
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_PATH_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_NAME
),
"GetDiskFreeSpaceA(
\"\"
): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceA(
\"\"
): ret=%d GetLastError=%ld
\n
"
,
ret
,
GetLastError
());
ret
=
GetDiskFreeSpaceA
(
"
\\
"
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceA
(
"/"
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld"
,
GetLastError
());
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
...
...
@@ -110,12 +110,12 @@ void test_GetDiskFreeSpaceA(void)
ret
=
GetDiskFreeSpaceA
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
if
(
!
(
logical_drives
&
1
))
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_PATH_NOT_FOUND
||
GetLastError
()
==
ERROR_INVALID_DRIVE
),
"GetDiskFreeSpaceA(%s): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceA(%s): ret=%d GetLastError=%ld
\n
"
,
drive
,
ret
,
GetLastError
());
else
ok
(
ret
||
(
!
ret
&&
(
GetLastError
()
==
ERROR_NOT_READY
||
GetLastError
()
==
ERROR_INVALID_DRIVE
)),
"GetDiskFreeSpaceA(%s): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceA(%s): ret=%d GetLastError=%ld
\n
"
,
drive
,
ret
,
GetLastError
());
}
logical_drives
>>=
1
;
...
...
@@ -138,21 +138,21 @@ void test_GetDiskFreeSpaceW(void)
/* Must be Win9x which doesn't support the Unicode functions */
return
;
}
ok
(
ret
,
"GetDiskFreeSpaceW error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceW error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceW
(
empty_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"GetDiskFreeSpaceW(
\"\"
): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceW(
\"\"
): ret=%d GetLastError=%ld
\n
"
,
ret
,
GetLastError
());
ret
=
GetDiskFreeSpaceW
(
root_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceW(
\"\"
) error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceW(
\"\"
) error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceW
(
unix_style_root_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceW error %ld"
,
GetLastError
());
ok
(
ret
,
"GetDiskFreeSpaceW error %ld
\n
"
,
GetLastError
());
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld"
,
GetLastError
());
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
...
...
@@ -162,11 +162,11 @@ void test_GetDiskFreeSpaceW(void)
ret
=
GetDiskFreeSpaceW
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
if
(
!
(
logical_drives
&
1
))
ok
(
!
ret
&&
GetLastError
()
==
ERROR_PATH_NOT_FOUND
,
"GetDiskFreeSpaceW(%c): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceW(%c): ret=%d GetLastError=%ld
\n
"
,
drive
[
0
],
ret
,
GetLastError
());
else
ok
(
ret
||
GetLastError
()
==
ERROR_NOT_READY
,
"GetDiskFreeSpaceW(%c): ret=%d GetLastError=%ld"
,
"GetDiskFreeSpaceW(%c): ret=%d GetLastError=%ld
\n
"
,
drive
[
0
],
ret
,
GetLastError
());
}
logical_drives
>>=
1
;
...
...
dlls/kernel/tests/environ.c
View file @
47e11622
This diff is collapsed.
Click to expand it.
dlls/user/tests/class.c
View file @
47e11622
...
...
@@ -67,10 +67,10 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
classatom
=
RegisterClassW
(
&
cls
);
if
(
!
classatom
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
return
;
ok
(
classatom
,
"failed to register class"
);
ok
(
classatom
,
"failed to register class
\n
"
);
ok
(
!
RegisterClassW
(
&
cls
),
"RegisterClass of the same class should fail for the second time"
);
"RegisterClass of the same class should fail for the second time
\n
"
);
/* Setup windows */
hTestWnd
=
CreateWindowW
(
className
,
winName
,
...
...
@@ -78,16 +78,16 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
CW_USEDEFAULT
,
0
,
CW_USEDEFAULT
,
0
,
0
,
0
,
hInstance
,
0
);
ok
(
hTestWnd
!=
0
,
"Failed to create window"
);
ok
(
hTestWnd
!=
0
,
"Failed to create window
\n
"
);
/* test initial values of valid classwords */
for
(
i
=
0
;
i
<
NUMCLASSWORDS
;
i
++
)
{
SetLastError
(
0
);
ok
(
!
GetClassLongW
(
hTestWnd
,
i
*
sizeof
(
DWORD
)),
"GetClassLongW initial value nonzero!"
);
"GetClassLongW initial value nonzero!
\n
"
);
ok
(
!
GetLastError
(),
"GetClassLongW failed!"
);
"GetClassLongW failed!
\n
"
);
}
#if 0
...
...
@@ -98,7 +98,7 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
SetLastError(0);
GetClassLongW(hTestWnd, NUMCLASSWORDS*sizeof(DWORD));
ok(GetLastError(),
"GetClassLongW() with invalid offset did not fail");
"GetClassLongW() with invalid offset did not fail
\n
");
#endif
/* set values of valid class words */
...
...
@@ -106,9 +106,9 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
{
SetLastError
(
0
);
ok
(
!
SetClassLongW
(
hTestWnd
,
i
*
sizeof
(
DWORD
),
i
+
1
),
"GetClassLongW(%ld) initial value nonzero!"
,
i
*
sizeof
(
DWORD
));
"GetClassLongW(%ld) initial value nonzero!
\n
"
,
i
*
sizeof
(
DWORD
));
ok
(
!
GetLastError
(),
"SetClassLongW(%ld) failed!"
,
i
*
sizeof
(
DWORD
));
"SetClassLongW(%ld) failed!
\n
"
,
i
*
sizeof
(
DWORD
));
}
/* test values of valid classwords that we set */
...
...
@@ -116,36 +116,36 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
{
SetLastError
(
0
);
ok
(
(
i
+
1
)
==
GetClassLongW
(
hTestWnd
,
i
*
sizeof
(
DWORD
)),
"GetClassLongW value doesn't match what was set!"
);
"GetClassLongW value doesn't match what was set!
\n
"
);
ok
(
!
GetLastError
(),
"GetClassLongW failed!"
);
"GetClassLongW failed!
\n
"
);
}
/* check GetClassName */
i
=
GetClassNameW
(
hTestWnd
,
str
,
sizeof
(
str
));
ok
(
i
==
lstrlenW
(
className
),
"GetClassName returned incorrect length"
);
"GetClassName returned incorrect length
\n
"
);
ok
(
!
lstrcmpW
(
className
,
str
),
"GetClassName returned incorrect name for this window's class"
);
"GetClassName returned incorrect name for this window's class
\n
"
);
/* check GetClassInfo with our hInstance */
if
((
test_atom
=
GetClassInfoW
(
hInstance
,
str
,
&
wc
)))
{
ok
(
test_atom
==
classatom
,
"class atom did not match"
);
"class atom did not match
\n
"
);
ok
(
wc
.
cbClsExtra
==
cls
.
cbClsExtra
,
"cbClsExtra did not match"
);
"cbClsExtra did not match
\n
"
);
ok
(
wc
.
cbWndExtra
==
cls
.
cbWndExtra
,
"cbWndExtra did not match"
);
"cbWndExtra did not match
\n
"
);
ok
(
wc
.
hbrBackground
==
cls
.
hbrBackground
,
"hbrBackground did not match"
);
"hbrBackground did not match
\n
"
);
ok
(
wc
.
hCursor
==
cls
.
hCursor
,
"hCursor did not match"
);
"hCursor did not match
\n
"
);
ok
(
wc
.
hInstance
==
cls
.
hInstance
,
"hInstance did not match"
);
"hInstance did not match
\n
"
);
}
else
ok
(
FALSE
,
"GetClassInfo (hinstance) failed!"
);
ok
(
FALSE
,
"GetClassInfo (hinstance) failed!
\n
"
);
/* check GetClassInfo with zero hInstance */
if
(
global
)
...
...
@@ -153,35 +153,35 @@ static void ClassTest(HINSTANCE hInstance, BOOL global)
if
((
test_atom
=
GetClassInfoW
(
0
,
str
,
&
wc
)))
{
ok
(
test_atom
==
classatom
,
"class atom did not match %x != %x"
,
test_atom
,
classatom
);
"class atom did not match %x != %x
\n
"
,
test_atom
,
classatom
);
ok
(
wc
.
cbClsExtra
==
cls
.
cbClsExtra
,
"cbClsExtra did not match %x!=%x"
,
wc
.
cbClsExtra
,
cls
.
cbClsExtra
);
"cbClsExtra did not match %x!=%x
\n
"
,
wc
.
cbClsExtra
,
cls
.
cbClsExtra
);
ok
(
wc
.
cbWndExtra
==
cls
.
cbWndExtra
,
"cbWndExtra did not match %x!=%x"
,
wc
.
cbWndExtra
,
cls
.
cbWndExtra
);
"cbWndExtra did not match %x!=%x
\n
"
,
wc
.
cbWndExtra
,
cls
.
cbWndExtra
);
ok
(
wc
.
hbrBackground
==
cls
.
hbrBackground
,
"hbrBackground did not match %p!=%p"
,
wc
.
hbrBackground
,
cls
.
hbrBackground
);
"hbrBackground did not match %p!=%p
\n
"
,
wc
.
hbrBackground
,
cls
.
hbrBackground
);
ok
(
wc
.
hCursor
==
cls
.
hCursor
,
"hCursor did not match %p!=%p"
,
wc
.
hCursor
,
cls
.
hCursor
);
"hCursor did not match %p!=%p
\n
"
,
wc
.
hCursor
,
cls
.
hCursor
);
ok
(
!
wc
.
hInstance
,
"hInstance not zero for global class %p"
,
wc
.
hInstance
);
"hInstance not zero for global class %p
\n
"
,
wc
.
hInstance
);
}
else
ok
(
FALSE
,
"GetClassInfo (0) failed for global class!"
);
ok
(
FALSE
,
"GetClassInfo (0) failed for global class!
\n
"
);
}
else
{
ok
(
!
GetClassInfoW
(
0
,
str
,
&
wc
),
"GetClassInfo (0) succeeded for local class!"
);
"GetClassInfo (0) succeeded for local class!
\n
"
);
}
ok
(
!
UnregisterClassW
(
className
,
hInstance
),
"Unregister class succeeded with window existing"
);
"Unregister class succeeded with window existing
\n
"
);
ok
(
DestroyWindow
(
hTestWnd
),
"DestroyWindow() failed!"
);
"DestroyWindow() failed!
\n
"
);
ok
(
UnregisterClassW
(
className
,
hInstance
),
"UnregisterClass() failed"
);
"UnregisterClass() failed
\n
"
);
return
;
}
...
...
dlls/user/tests/listbox.c
View file @
47e11622
...
...
@@ -99,7 +99,7 @@ keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
#define listbox_field_ok(t, s, f, got) \
ok (t.s.f==got.f, "style %#x, step " #s ", field " #f \
": expected %d, got %d", (unsigned int)t.prop.add_style, \
": expected %d, got %d
\n
", (unsigned int)t.prop.add_style, \
t.s.f, got.f)
#define listbox_todo_field_ok(t, s, f, got) \
...
...
dlls/user/tests/resource.c
View file @
47e11622
...
...
@@ -43,12 +43,12 @@ test_LoadStringA (void)
const
int
expected
=
tests
[
i
].
expected
;
const
int
len
=
LoadStringA
(
hInst
,
0
,
buf
,
bufsiz
);
ok
(
len
==
expected
,
"bufsiz=%d: got %d, expected %d"
,
ok
(
len
==
expected
,
"bufsiz=%d: got %d, expected %d
\n
"
,
bufsiz
,
len
,
expected
);
ok
(
!
memcmp
(
buf
,
str
,
len
),
"bufsiz=%d: got '%s', expected '%.*s'"
,
"bufsiz=%d: got '%s', expected '%.*s'
\n
"
,
bufsiz
,
buf
,
len
,
str
);
ok
(
buf
[
len
]
==
0
,
"bufsiz=%d: NUL termination missing"
,
ok
(
buf
[
len
]
==
0
,
"bufsiz=%d: NUL termination missing
\n
"
,
bufsiz
);
}
}
...
...
dlls/user/tests/sysparams.c
View file @
47e11622
...
...
@@ -133,10 +133,10 @@ static void test_change_message( int action, int optional )
if
(
change_counter
==
0
&&
optional
==
1
)
return
;
ok
(
1
==
change_counter
,
"Missed a message: change_counter=%d"
,
change_counter
);
"Missed a message: change_counter=%d
\n
"
,
change_counter
);
change_counter
=
0
;
ok
(
action
==
change_last_param
,
"Wrong action got %d expected %d"
,
change_last_param
,
action
);
"Wrong action got %d expected %d
\n
"
,
change_last_param
,
action
);
change_last_param
=
0
;
}
...
...
@@ -166,13 +166,13 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName, LPCST
if
(
rc
==
ERROR_SUCCESS
)
{
ok
(
!
strcmp
(
testValue
,
value
),
"Wrong value in registry: subKey=%s, valName=%s, testValue=%s, value=%s"
,
"Wrong value in registry: subKey=%s, valName=%s, testValue=%s, value=%s
\n
"
,
subKey1
,
valName
,
testValue
,
value
);
found
++
;
}
else
if
(
strict
)
{
ok
(
0
,
"Missing registry entry: subKey=%s, valName=%s"
,
ok
(
0
,
"Missing registry entry: subKey=%s, valName=%s
\n
"
,
subKey1
,
valName
);
}
if
(
subKey2
&&
!
strict
)
...
...
@@ -185,12 +185,12 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName, LPCST
if
(
rc
==
ERROR_SUCCESS
)
{
ok
(
!
strcmp
(
testValue
,
value
),
"Wrong value in registry: subKey=%s, valName=%s, testValue=%s, value=%s"
,
"Wrong value in registry: subKey=%s, valName=%s, testValue=%s, value=%s
\n
"
,
subKey2
,
valName
,
testValue
,
value
);
found
++
;
}
}
ok
(
found
,
"Missing registry entry: %s in %s or %s"
,
ok
(
found
,
"Missing registry entry: %s in %s or %s
\n
"
,
valName
,
subKey1
,
(
subKey2
?
subKey2
:
"<n/a>"
)
);
}
...
...
@@ -250,7 +250,7 @@ static void test_SPI_SETBEEP( void ) /* 2 */
ok
(
rc
!=
0
,
"SystemParametersInfoW: rc=%d err=%ld
\n
"
,
rc
,
GetLastError
());
eq
(
b
,
curr_val
,
"SystemParametersInfoW"
,
"%d"
);
}
ok
(
MessageBeep
(
MB_OK
),
"Return value of MessageBeep when sound is disabled"
);
ok
(
MessageBeep
(
MB_OK
),
"Return value of MessageBeep when sound is disabled
\n
"
);
rc
=
SystemParametersInfoA
(
SPI_SETBEEP
,
old_b
,
0
,
SPIF_UPDATEINIFILE
);
ok
(
rc
!=
0
,
"***warning*** failed to restore the original value: rc=%d err=%ld
\n
"
,
rc
,
GetLastError
());
...
...
@@ -294,7 +294,7 @@ static void run_spi_setmouse_test( int curr_val[], POINT *req_change, POINT *pro
for
(
i
=
0
;
i
<
3
;
i
++
)
{
ok
(
mi
[
i
]
==
curr_val
[
i
],
"incorrect value for %d: %d != %d"
,
i
,
mi
[
i
],
curr_val
[
i
]);
"incorrect value for %d: %d != %d
\n
"
,
i
,
mi
[
i
],
curr_val
[
i
]);
}
rc
=
SystemParametersInfoW
(
SPI_GETMOUSE
,
0
,
mi
,
0
);
...
...
@@ -304,7 +304,7 @@ static void run_spi_setmouse_test( int curr_val[], POINT *req_change, POINT *pro
for
(
i
=
0
;
i
<
3
;
i
++
)
{
ok
(
mi
[
i
]
==
curr_val
[
i
],
"incorrect value for %d: %d != %d"
,
i
,
mi
[
i
],
curr_val
[
i
]);
"incorrect value for %d: %d != %d
\n
"
,
i
,
mi
[
i
],
curr_val
[
i
]);
}
}
...
...
@@ -315,8 +315,8 @@ static void run_spi_setmouse_test( int curr_val[], POINT *req_change, POINT *pro
mouse_event( MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, 0, 0, 0, 0 );
mouse_event( MOUSEEVENTF_MOVE, req_change[i].x, req_change[i].y, 0, 0 );
GetCursorPos( &mv );
ok( proj_change[i].x == mv.x, "Projected dx and real dx comparison. May fail under high load." );
ok( proj_change[i].y == mv.y, "Projected dy equals real dy. May fail under high load." );
ok( proj_change[i].x == mv.x, "Projected dx and real dx comparison. May fail under high load.
\n
" );
ok( proj_change[i].y == mv.y, "Projected dy equals real dy. May fail under high load.
\n
" );
}
#endif
}
...
...
dlls/user/tests/win.c
View file @
47e11622
This diff is collapsed.
Click to expand it.
dlls/user/tests/wsprintf.c
View file @
47e11622
...
...
@@ -30,9 +30,9 @@ static void wsprintfATest(void)
int
rc
;
rc
=
wsprintfA
(
buf
,
"%010ld"
,
-
1
);
ok
(
rc
==
10
,
"wsPrintfA length failure: rc=%d error=%ld"
,
rc
,
GetLastError
());
ok
(
rc
==
10
,
"wsPrintfA length failure: rc=%d error=%ld
\n
"
,
rc
,
GetLastError
());
ok
((
lstrcmpA
(
buf
,
"-000000001"
)
==
0
),
"wsprintfA zero padded negative value failure: buf=[%s]"
,
buf
);
"wsprintfA zero padded negative value failure: buf=[%s]
\n
"
,
buf
);
}
static
void
wsprintfWTest
(
void
)
...
...
@@ -45,9 +45,9 @@ static void wsprintfWTest(void)
rc
=
wsprintfW
(
buf
,
fmt
,
-
1
);
if
(
rc
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
return
;
ok
(
rc
==
10
,
"wsPrintfW length failure: rc=%d error=%ld"
,
rc
,
GetLastError
());
ok
(
rc
==
10
,
"wsPrintfW length failure: rc=%d error=%ld
\n
"
,
rc
,
GetLastError
());
ok
((
lstrcmpW
(
buf
,
target
)
==
0
),
"wsprintfW zero padded negative value failure"
);
"wsprintfW zero padded negative value failure
\n
"
);
}
START_TEST
(
wsprintf
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment