IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2808


Ignore:
Timestamp:
Dec 23, 2004, 9:38:38 AM (22 years ago)
Author:
desonia
Message:

fixed some small problems with running tests on AMD64.

Location:
trunk/psLib/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psTime_03.c

    r2749 r2808  
    1818 *  @author  Ross Harman, MHPCC
    1919 *
    20  *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
    21  *  @date  $Date: 2004-12-17 20:48:47 $
     20 *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
     21 *  @date  $Date: 2004-12-23 19:38:38 $
    2222 *
    2323 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444    timeOut1 = psTimeMath(time1a, time1b);
    4545    if(timeOut1->sec!=2 && timeOut1->usec!=222222) {
    46         printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",timeOut1->sec, timeOut1->usec);
     46        printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",(long long int)timeOut1->sec, timeOut1->usec);
    4747    }
    4848    printFooter(stdout, "psTime", "Test A - Add two times", true);
     
    5959    timeOut2 = psTimeMath(time2a, time2b);
    6060    if(timeOut2->sec!=12 && timeOut2->usec!=100002) {
    61         printf("ERROR: Incorrect time, %lld:%u. Expected 12:100002\n",timeOut2->sec, timeOut2->usec);
     61        printf("ERROR: Incorrect time, %lld:%u. Expected 12:100002\n",(long long int)timeOut2->sec, timeOut2->usec);
    6262    }
    6363    printFooter(stdout, "psTime", "Test B - Add two times with overflow in microseconds", true);
     
    7474    timeOut3 = psTimeMath(time3a, time3b);
    7575    if(timeOut3->sec!=2 && timeOut3->usec!=222222) {
    76         printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",timeOut3->sec, timeOut3->usec);
     76        printf("ERROR: Incorrect time, %lld:%u. Expected 2:222222\n",(long long int)timeOut3->sec, timeOut3->usec);
    7777    }
    7878    printFooter(stdout, "psTime", "Test C - Subtract two times", true);
     
    8989    timeOut4 = psTimeMath(time4a, time4b);
    9090    if(timeOut4->sec!=2 && timeOut4->usec!=999997) {
    91         printf("ERROR: Incorrect time, %lld:%u. Expected 2:999997\n",timeOut4->sec, timeOut4->usec);
     91        printf("ERROR: Incorrect time, %lld:%u. Expected 2:999997\n",(long long int)timeOut4->sec, timeOut4->usec);
    9292    }
    9393    printFooter(stdout, "psTime", "Test D - Subtact two times with underflow in microseconds", true);
     
    152152    time8b = psTimeFromISOTime("1972-1-1T1:00:00.00");
    153153    out = psTimeLeapseconds(time8a, time8b);
    154     printf("%lld\n", out);
     154    printf("%lld\n", (long long int)out);
    155155    printFooter(stdout, "psTime", "Test H - Find number of leapseconds added between two times", true);
    156156
  • trunk/psLib/test/dataIO/tst_psLookupTable_01.c

    r2706 r2808  
    1212*  @author  Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    15 *  @date  $Date: 2004-12-13 22:32:02 $
     14*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     15*  @date  $Date: 2004-12-23 19:38:38 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6565            printf("ERROR: Incorrect value, %lf. Expected %lf\n", out2->data.F64[i], truthData2[i]);
    6666        } else if(status1 != PS_LOOKUP_SUCCESS) {
    67             printf("ERROR: Bad return status, %d for column %lld\n", stats2->data.U32[i], i);
     67            printf("ERROR: Bad return status, %d for column %lld\n", stats2->data.U32[i], (long long int)i);
    6868        }
    6969    }
  • trunk/psLib/test/fileUtils/tst_psLookupTable_01.c

    r2706 r2808  
    1212*  @author  Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    15 *  @date  $Date: 2004-12-13 22:32:02 $
     14*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     15*  @date  $Date: 2004-12-23 19:38:38 $
    1616*
    1717*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6565            printf("ERROR: Incorrect value, %lf. Expected %lf\n", out2->data.F64[i], truthData2[i]);
    6666        } else if(status1 != PS_LOOKUP_SUCCESS) {
    67             printf("ERROR: Bad return status, %d for column %lld\n", stats2->data.U32[i], i);
     67            printf("ERROR: Bad return status, %d for column %lld\n", stats2->data.U32[i], (long long int)i);
    6868        }
    6969    }
Note: See TracChangeset for help on using the changeset viewer.