IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2004, 2:09:25 PM (22 years ago)
Author:
desonia
Message:

fixed TPOutOfMemory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psMemory.c

    r721 r722  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-05-18 23:35:25 $
     8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-05-19 00:09:25 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5757{
    5858    psSetLogLevel(PS_LOG_INFO);
     59
    5960    if (! runTestSuite(stderr,"psMemory",tests)) {
    6061        psAbort(__FILE__,"One or more tests failed");
     
    173174    cb = psMemExhaustedCallbackSet(TPOutOfMemoryExhaustedCallback);
    174175
    175     mem1 = (int*) psAlloc(UINT_MAX);
    176     mem2 = (int*) psAlloc(UINT_MAX);
    177     mem3 = (int*) psAlloc(UINT_MAX);
    178     mem4 = (int*) psAlloc(UINT_MAX);
     176    mem1 = (int*) psAlloc(LONG_MAX/2);
     177    mem2 = (int*) psAlloc(LONG_MAX/2);
     178    mem3 = (int*) psAlloc(LONG_MAX/2);
     179    mem4 = (int*) psAlloc(LONG_MAX/2);
    179180
    180181    psMemExhaustedCallbackSet(cb);
Note: See TracChangeset for help on using the changeset viewer.