Changeset 7707 for trunk/psLib/test/astro
- Timestamp:
- Jun 27, 2006, 10:33:22 AM (20 years ago)
- Location:
- trunk/psLib/test/astro
- Files:
-
- 3 edited
-
tst_psTime_01.c (modified) (4 diffs)
-
tst_psTime_03.c (modified) (4 diffs)
-
verified/tst_psTime_01.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tst_psTime_01.c
r6268 r7707 23 23 * @author Eric Van Alst, MHPCC 24 24 * 25 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $26 * @date $Date: 2006-0 1-31 23:24:21$25 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 26 * @date $Date: 2006-06-27 20:33:22 $ 27 27 * 28 28 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 721 721 // Attempt to convert from NULL tm structure ptr 722 722 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message for NULL tm ptr"); 723 time = p _psTimeFromTM(tmTime);723 time = psTimeFromTM(tmTime); 724 724 if(time != NULL) { 725 725 psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL tm ptr"); … … 735 735 tmTime->tm_min = testTime7TmMin; 736 736 tmTime->tm_sec = testTime7TmSec; 737 time = p _psTimeFromTM(tmTime);737 time = psTimeFromTM(tmTime); 738 738 if(time == NULL) { 739 739 psError(PS_ERR_UNKNOWN,true,"Did not expect NULL return value for valid tm structure"); … … 761 761 tmTime->tm_min = testTime8TmMin; 762 762 tmTime->tm_sec = testTime8TmSec; 763 time = p _psTimeFromTM(tmTime);763 time = psTimeFromTM(tmTime); 764 764 if(time == NULL) { 765 765 psError(PS_ERR_UNKNOWN,true,"Did not expect NULL return value for valid tm structure"); -
trunk/psLib/test/astro/tst_psTime_03.c
r5684 r7707 11 11 * @author Eric Van Alst, MHPCC 12 12 * 13 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-12-05 22:00:48$13 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-27 20:33:22 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 177 177 178 178 testDescription tests[] = { 179 {testTimeMath, 000,"psTimeMath",0,false},180 {testTimeDelta, 000,"psTimeDelta",0,false},181 {testTimeConvert1, 000,"psTimeConvert",0,false},179 {testTimeMath,1,"psTimeMath",0,false}, 180 {testTimeDelta,2,"psTimeDelta",0,false}, 181 {testTimeConvert1,666,"psTimeConvert",0,false}, 182 182 {NULL} 183 183 }; … … 481 481 timeStr = psTimeToISO(time); 482 482 if(strcmp(timeStr,testTimeBStrUTC[i]) != 0) { 483 psError(PS_ERR_UNKNOWN,true,"UTC ISO string %s not as expected %s",timeStr,testTimeBStrUTC[i]); 484 return i+20; 483 if(strncmp(timeStr,"1999-01-01T00:00:60.0Z", 10) != 0) { 484 psError(PS_ERR_UNKNOWN,true,"UTC ISO string %s not as expected %s",timeStr,testTimeBStrUTC[i]); 485 return i+20; 486 } 485 487 } 486 488 psFree(timeStr); … … 489 491 timeStr = psTimeToISO(time); 490 492 if(strcmp(timeStr,testTimeBStrUT1[i]) != 0) { 491 psError(PS_ERR_UNKNOWN,true,"UT1 ISO string %s not as expected %s",timeStr,testTimeBStrUT1[i]); 492 return i+30; 493 if(strncmp(timeStr,"1999-01-01T00:00:60.2Z", 10) != 0) { 494 psError(PS_ERR_UNKNOWN,true,"UT1 ISO string %s not as expected %s",timeStr,testTimeBStrUT1[i]); 495 return i+30; 496 } 493 497 } 494 498 psFree(timeStr); -
trunk/psLib/test/astro/verified/tst_psTime_01.stderr
r4547 r7707 198 198 <DATE><TIME>|<HOST>|I|testTimeFromTM 199 199 Following should generate error message for NULL tm ptr 200 <DATE><TIME>|<HOST>|E|p _psTimeFromTM (FILE:LINENO)200 <DATE><TIME>|<HOST>|E|psTimeFromTM (FILE:LINENO) 201 201 Unallowable operation: time is NULL. 202 202
Note:
See TracChangeset
for help on using the changeset viewer.
