From 7676e9b86861fda02c041fa1c6e4f6ce6da2385f Mon Sep 17 00:00:00 2001 From: Jakob Eriksson Date: Thu, 17 Mar 2005 18:54:31 +0000 Subject: [PATCH] More trace info. --- dlls/kernel/tests/time.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/kernel/tests/time.c b/dlls/kernel/tests/time.c index 437e3d3bab6..9b02c997a9c 100644 --- a/dlls/kernel/tests/time.c +++ b/dlls/kernel/tests/time.c @@ -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)