mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
More trace info.
This commit is contained in:
parent
f7be545ede
commit
7676e9b868
@ -121,15 +121,18 @@ static void test_invalid_arg()
|
||||
FILETIME ft;
|
||||
SYSTEMTIME st;
|
||||
|
||||
memset(&ft,0,sizeof ft);
|
||||
|
||||
/* Invalid argument checks */
|
||||
|
||||
ft.dwHighDateTime = 12345;
|
||||
ft.dwLowDateTime = 12345;
|
||||
todo_wine {
|
||||
ok( !DosDateTimeToFileTime(0,0,&ft), /* invalid dos date/time */
|
||||
"DosDateTimeToFileTime() didn't fail\n");
|
||||
ok( 0 == DosDateTimeToFileTime(0,0,&ft),
|
||||
"Invalid DOS date/time, DosDateTimeToFileTime() didn't fail!\n"
|
||||
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.\n\n", (int)ft.dwHighDateTime, (int)ft.dwLowDateTime);
|
||||
}
|
||||
|
||||
memset(&ft,0,sizeof ft);
|
||||
ok( DosDateTimeToFileTime(DOS_DATE(1980,1,1),DOS_TIME(0,0,0),&ft), /* this is 1 Jan 1980 00:00:00 */
|
||||
"DosDateTimeToFileTime() failed\n");
|
||||
|
||||
@ -150,7 +153,10 @@ static void test_invalid_arg()
|
||||
SETUP_1980(st)
|
||||
st.wDay = 0;
|
||||
|
||||
ok( !SystemTimeToFileTime(&st, &ft), "bad day\n");
|
||||
ft.dwHighDateTime = 11111;
|
||||
ft.dwLowDateTime = 22222;
|
||||
ok( 0 == SystemTimeToFileTime(&st, &ft), "SystemTimeToFileTime() succeded unexpectedly!\n"
|
||||
"ft.dwHighDateTime=%d, ft.dwLowDateTime=%d.\n\n", (int)ft.dwHighDateTime, (int)ft.dwLowDateTime);
|
||||
|
||||
/* with a bad hour */
|
||||
SETUP_1980(st)
|
||||
|
Loading…
Reference in New Issue
Block a user