Changeset 12406
- Timestamp:
- Mar 12, 2007, 11:00:25 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tap_psTime_02.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psTime_02.c
r11180 r12406 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-0 1-19 20:42:21$14 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-03-12 21:00:25 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 280 280 // psTimeIsLeapSecond() 281 281 // Set time to UTC with leap second 282 // XXX: This test fails. Looks like it failed in the code as of 2007.283 { 284 psMemId id = psMemGetId(); 285 psTime *time = psTimeAlloc(PS_TIME_ TAI);282 // Note: leapseconds are only relevent for UTC 283 { 284 psMemId id = psMemGetId(); 285 psTime *time = psTimeAlloc(PS_TIME_UTC); 286 286 time->sec = testTime3SecondsUTC; 287 287 time->nsec = testTime3NanosecondsUTC; … … 295 295 // psTimeIsLeapSecond() 296 296 // Set time to 1 second before a known leap second 297 // XXX: This test fails. Looks like it failed in the code as of 2007.298 { 299 psMemId id = psMemGetId(); 300 psTime *time = psTimeAlloc(PS_TIME_ TAI);297 // Note: leapseconds are only relevent for UTC 298 { 299 psMemId id = psMemGetId(); 300 psTime *time = psTimeAlloc(PS_TIME_UTC); 301 301 time->sec = testTime3SecondsUTC; 302 302 time->nsec = testTime3NanosecondsUTC; 303 303 time->sec--; 304 304 psBool leapsecond = psTimeIsLeapSecond(time); 305 ok( leapsecond, "psTimeIsLeapSecond() returned true");305 ok(!leapsecond, "psTimeIsLeapSecond() returned false"); 306 306 psFree(time); 307 307 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
Note:
See TracChangeset
for help on using the changeset viewer.
