Changeset 13623 for trunk/psLib/test/astro/tap_psTime_03.c
- Timestamp:
- Jun 4, 2007, 3:10:22 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tap_psTime_03.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psTime_03.c
r12607 r13623 11 11 * @author Eric Van Alst, MHPCC 12 12 * 13 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-0 3-27 22:52:02 $13 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-06-05 01:10:22 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 179 179 psLibInit("pslib.config"); 180 180 181 181 182 // psTimeMath() 182 183 // Attempt to perform math operation on NULL time … … 185 186 { 186 187 psMemId id = psMemGetId(); 187 188 188 ok(psTimeMath(NULL, -1.1) == NULL, "psTimeMath(NULL, -1.1) returned NULL"); 189 190 189 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 191 190 } … … 201 200 time->sec = 0; 202 201 time->nsec = 2e9; 203 204 202 ok(psTimeMath(time, -1.1) == NULL, "psTimeMath() returns NULL for unallowable time input"); 205 206 203 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); 207 204 } … … 215 212 time->sec = testTime1SecondsUTC; 216 213 time->nsec = testTime1NanosecondsUTC; 217 218 214 psTime *newTime = psTimeMath(time, deltaTime1); 219 215 ok(newTime != NULL, "psTimeMath() returns non-NULL for allowable time input (PS_TIME_UTC)"); … … 223 219 is_long(newTime->nsec, newTestTime1NanosecondsUTC, "psTimeMath() returns the correct ->nsec"); 224 220 skip_end(); 225 226 221 psFree(newTime); 227 222 psFree(time);
Note:
See TracChangeset
for help on using the changeset viewer.
