Changeset 11686
- Timestamp:
- Feb 7, 2007, 1:52:54 PM (19 years ago)
- Location:
- trunk/psLib
- Files:
-
- 46 edited
-
src/astro/psCoord.c (modified) (10 diffs)
-
src/db/psDB.c (modified) (3 diffs)
-
src/fits/psFitsTable.c (modified) (3 diffs)
-
src/imageops/psImageGeomManip.c (modified) (2 diffs)
-
src/math/psMinimizeLMM.c (modified) (2 diffs)
-
src/math/psSparse.c (modified) (1 diff)
-
src/math/psStats.c (modified) (5 diffs)
-
src/sys/psAbort.c (modified) (3 diffs)
-
src/sys/psAbort.h (modified) (3 diffs)
-
src/sys/psError.c (modified) (4 diffs)
-
src/sys/psString.c (modified) (2 diffs)
-
src/types/psArguments.c (modified) (3 diffs)
-
src/types/psMetadataItemCompare.c (modified) (1 diff)
-
src/types/psMetadataItemParse.c (modified) (1 diff)
-
test/imageops/tst_psImageStats.c (modified) (1 diff)
-
test/math/tap_psPolyFit1D.c (modified) (1 diff)
-
test/math/tap_psPolyFit2D.c (modified) (1 diff)
-
test/math/tap_psPolyFit3D.c (modified) (1 diff)
-
test/math/tap_psPolyFit4D.c (modified) (1 diff)
-
test/math/tap_psStats07.c (modified) (1 diff)
-
test/math/tap_psStats09.c (modified) (1 diff)
-
test/math/tst_psFunc01.c (modified) (3 diffs)
-
test/math/tst_psHist00.c (modified) (1 diff)
-
test/math/tst_psHist01.c (modified) (1 diff)
-
test/math/tst_psHist02.c (modified) (1 diff)
-
test/math/tst_psHist03.c (modified) (1 diff)
-
test/math/tst_psMathUtils.c (modified) (1 diff)
-
test/math/tst_psMinimizeLMM.c (modified) (1 diff)
-
test/math/tst_psMinimizePowell.c (modified) (3 diffs)
-
test/math/tst_psPolyFit1D.c (modified) (1 diff)
-
test/math/tst_psPolyFit2D.c (modified) (1 diff)
-
test/math/tst_psPolyFit3D.c (modified) (1 diff)
-
test/math/tst_psPolyFit4D.c (modified) (1 diff)
-
test/math/tst_psSpline1D.c (modified) (10 diffs)
-
test/math/tst_psStats03.c (modified) (1 diff)
-
test/math/tst_psStats05.c (modified) (1 diff)
-
test/math/tst_psStats06.c (modified) (1 diff)
-
test/math/tst_psStats07.c (modified) (1 diff)
-
test/math/tst_psStats08.c (modified) (1 diff)
-
test/math/tst_psStats09.c (modified) (1 diff)
-
test/types/tst_psBitSet.c (modified) (36 diffs)
-
test/types/tst_psHash00.c (modified) (1 diff)
-
test/types/tst_psHash01.c (modified) (1 diff)
-
test/types/tst_psHash02.c (modified) (1 diff)
-
test/types/tst_psHash03.c (modified) (1 diff)
-
test/types/tst_psHash04.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r11668 r11686 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.13 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-02-0 6 21:36:09$12 * @version $Revision: 1.134 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-02-07 23:52:53 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 401 401 402 402 default: 403 psAbort ("psCoord","invalid projection");403 psAbort("invalid projection"); 404 404 break; 405 405 } … … 465 465 break; 466 466 default: 467 psAbort ("psCoord","invalid projection");467 psAbort("invalid projection"); 468 468 break; 469 469 } … … 493 493 case PS_PROJ_CAR: 494 494 case PS_PROJ_MER: 495 psAbort ("psCoord","projection not yet implemented");495 psAbort("projection not yet implemented"); 496 496 break; 497 497 default: 498 psAbort ("psCoord","invalid projection");498 psAbort("invalid projection"); 499 499 break; 500 500 } … … 502 502 503 503 default: 504 psAbort ("psCoord","invalid projection");504 psAbort("invalid projection"); 505 505 break; 506 506 } … … 557 557 558 558 default: 559 psAbort ("psCoord","invalid projection");559 psAbort("invalid projection"); 560 560 break; 561 561 } … … 603 603 break; 604 604 case PS_PROJ_STG: 605 psAbort ("coords","STG not defined");605 psAbort("STG not defined"); 606 606 break; 607 607 case PS_PROJ_ZEA: … … 613 613 break; 614 614 default: 615 psAbort ("psCoord","invalid projection");615 psAbort("invalid projection"); 616 616 break; 617 617 } … … 663 663 break; 664 664 default: 665 psAbort ("psCoord","invalid projection");665 psAbort("invalid projection"); 666 666 break; 667 667 } … … 670 670 break; 671 671 default: 672 psAbort ("psCoord","invalid projection");672 psAbort("invalid projection"); 673 673 break; 674 674 } -
trunk/psLib/src/db/psDB.c
r11668 r11686 12 12 * @author Joshua Hoblitt 13 13 * 14 * @version $Revision: 1.13 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-02-0 6 21:36:09$14 * @version $Revision: 1.135 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-02-07 23:52:53 $ 16 16 * 17 17 * Copyright (C) 2005-2006 Joshua Hoblitt, University of Hawaii … … 141 141 mysql = mysql_init(NULL); 142 142 if (!mysql) { 143 psAbort( __func__,"mysql_init(), out of memory.");143 psAbort("mysql_init(), out of memory."); 144 144 } 145 145 … … 856 856 MYSQL_STMT *stmt = mysql_stmt_init(dbh->mysql); 857 857 if (!stmt) { 858 psAbort( __func__,"mysql_stmt_init(), out of memory.");858 psAbort("mysql_stmt_init(), out of memory."); 859 859 } 860 860 if (mysql_stmt_prepare(stmt, query, (unsigned long)strlen(query))) { -
trunk/psLib/src/fits/psFitsTable.c
r10999 r11686 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 1-09 22:38:52$9 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-02-07 23:52:53 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 420 420 } 421 421 default: 422 psAbort( __func__,"Shouldn't ever get here.");422 psAbort("Shouldn't ever get here."); 423 423 } 424 424 return 0; … … 697 697 } 698 698 default: 699 psAbort( __func__,"Should never get here.\n");699 psAbort("Should never get here.\n"); 700 700 } 701 701 } -
trunk/psLib/src/imageops/psImageGeomManip.c
r10999 r11686 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-0 1-09 22:38:52$12 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-02-07 23:52:54 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1058 1058 } 1059 1059 1060 psAbort( __func__,"Should never get here.\n");1060 psAbort("Should never get here.\n"); 1061 1061 return NULL; 1062 1062 } -
trunk/psLib/src/math/psMinimizeLMM.c
r11668 r11686 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-02-0 6 21:36:09$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-02-07 23:52:54 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 282 282 chisq += PS_SQR(delta) * dy->data.F32[i]; 283 283 if (isnan(dy->data.F32[i])) 284 psAbort ("psMinLMM","nan in weights");284 psAbort("nan in weights"); 285 285 if (isnan(delta)) 286 psAbort ("psMinLMM","nan in delta");286 psAbort("nan in delta"); 287 287 if (isnan(chisq)) 288 psAbort ("psMinLMM","nan in chisq");288 psAbort("nan in chisq"); 289 289 290 290 for (psS32 j = 0; j < params->n; j++) { -
trunk/psLib/src/math/psSparse.c
r10999 r11686 66 66 if (i < j) { 67 67 // psError(PS_ERR_UNKNOWN, true, "i=%d, j=%d refers to a sub-diagonal element. not allowed!"); 68 psAbort (__func__,"i=%d, j=%d refers to a sub-diagonal element. not allowed!", i, j);68 psAbort("i=%d, j=%d refers to a sub-diagonal element. not allowed!", i, j); 69 69 return false; 70 70 } -
trunk/psLib/src/math/psStats.c
r11155 r11686 13 13 * use ->min and ->max (PS_STAT_USE_RANGE) 14 14 * 15 * @version $Revision: 1. 199$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-0 1-19 04:32:27$15 * @version $Revision: 1.200 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-02-07 23:52:54 $ 17 17 * 18 18 * Copyright 2006 IfA, University of Hawaii … … 1870 1870 if (stats->options & (PS_STAT_FITTED_MEAN_V2 | PS_STAT_FITTED_STDEV_V2)) { 1871 1871 if (stats->options & (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) { 1872 psAbort ("stats","you may not specify both FITTED_MEAN and FITTED_MEAN_V2");1872 psAbort("you may not specify both FITTED_MEAN and FITTED_MEAN_V2"); 1873 1873 } 1874 1874 if (!vectorFittedStats_v2(inF32, errorsF32, maskU8, maskVal, stats)) { … … 1881 1881 if (stats->options & (PS_STAT_FITTED_MEAN_V3 | PS_STAT_FITTED_STDEV_V3)) { 1882 1882 if (stats->options & (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) { 1883 psAbort ("stats","you may not specify both FITTED_MEAN and FITTED_MEAN_V3");1883 psAbort("you may not specify both FITTED_MEAN and FITTED_MEAN_V3"); 1884 1884 } 1885 1885 if (!vectorFittedStats_v3(inF32, errorsF32, maskU8, maskVal, stats)) { … … 2024 2024 return 0; 2025 2025 } 2026 psAbort( __func__,"Should never get here.\n");2026 psAbort("Should never get here.\n"); 2027 2027 return 0; 2028 2028 } … … 2070 2070 return NAN; 2071 2071 } 2072 psAbort( __func__,"Should never get here.\n");2072 psAbort("Should never get here.\n"); 2073 2073 return NAN; 2074 2074 } -
trunk/psLib/src/sys/psAbort.c
r10999 r11686 9 9 * 10 10 * @author Eric Van Alst, MHPCC 11 * @author Joshua Hoblitt, University of Hawaii 11 12 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-0 1-09 22:38:53$13 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-02-07 23:52:54 $ 14 15 * 15 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 23 #include <stdarg.h> 23 24 #include <stdlib.h> 25 24 26 #include "psAbort.h" 25 27 #include "psError.h" 26 28 #include "psLogMsg.h" 27 29 28 void psAbort(const char *name, const char *format, ...) 30 void p_psAbort(const char *file, 31 unsigned int lineno, 32 const char *func, 33 const char *format, 34 ...) 29 35 { 30 36 psErrorStackPrint(stderr, "Aborting. Error stack:"); … … 35 41 36 42 // Call logging function with PS_LOG_ABORT level 37 psLogMsgV( name, PS_LOG_ABORT, format, argPtr);43 psLogMsgV("psLib.sys", PS_LOG_ABORT, format, argPtr); 38 44 39 45 // Clean up stack after variable arguement has been used -
trunk/psLib/src/sys/psAbort.h
r11248 r11686 8 8 * 9 9 * @author Eric Van Alst, MHPCC 10 * @author Joshua Hoblitt, University of Hawaii 10 11 * 11 * $Revision: 1.1 3$ $Name: not supported by cvs2svn $12 * $Date: 2007-0 1-23 22:47:23$12 * $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * $Date: 2007-02-07 23:52:54 $ 13 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 15 */ … … 19 20 /// @addtogroup SysUtils System Utilities 20 21 /// @{ 22 23 #include <stdarg.h> 21 24 22 25 /** Reports an abort message to logging facility … … 30 33 * 31 34 */ 32 #ifdef __GNUC__35 #ifdef DOXYGEN 33 36 void psAbort( 34 const char *name, ///< Source of abort such as file or function detected 35 const char *format, ///< A printf style formatting statement defining msg 36 ... 37 ) __attribute__((format(printf, 2, 3))); 38 #else // __GNUC__ 39 void psAbort( 40 const char *name, ///< Source of abort such as file or function detected 41 const char *format, ///< A printf style formatting statement defining msg 37 const char *format, ///< A printf style formatting statement 42 38 ... 43 39 ); 44 #endif // __GNUC__ 40 #else // ifdef DOXYGEN 41 void p_psAbort( 42 const char *file, ///< File of caller 43 unsigned int lineno, ///< Line number of caller 44 const char *func, ///< Function name of caller 45 const char *format, ///< A printf style formatting statement 46 ... 47 #ifdef __GNUC__ 48 ) __attribute__((format(printf, 4, 5), noreturn)); 49 #else // ifdef __GNUC__ 50 ); 51 #endif // ifdef __GNUC__ 52 #ifndef SWIG 53 #define psAbort(...) \ 54 p_psAbort(__FILE__, __LINE__, __func__, __VA_ARGS__) 55 #endif // iddef SWIG 56 #endif // ifdef DOXYGEN 45 57 46 58 /// @} -
trunk/psLib/src/sys/psError.c
r11674 r11686 11 11 * @author Eric Van Alst, MHPCC 12 12 * 13 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-02-07 01:15:49$13 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-02-07 23:52:54 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 65 65 psArrayAdd(errorStack, 0, err); 66 66 } else { 67 psAbort( __func__,"attempt to exceed maximum error stack depth of %ld",67 psAbort("attempt to exceed maximum error stack depth of %ld", 68 68 (long)MAX_ERROR_STACK_SIZE); 69 69 } … … 78 78 // thread exits 79 79 if (pthread_key_create(&errorStack_key, psFreeWrapper)) { 80 psAbort( __func__, "pthread_key_create() failed");80 psAbort("pthread_key_create failed()"); 81 81 } 82 82 errorStackKeyInitialized = true; … … 95 95 // param 96 96 if (pthread_setspecific(errorStack_key, errorStack)) { 97 psAbort( __func__,"pthread_setspecific() failed");97 psAbort("pthread_setspecific() failed"); 98 98 } 99 99 } -
trunk/psLib/src/sys/psString.c
r11618 r11686 13 13 * @author David Robbins, MHPCC 14 14 * 15 * @version $Revision: 1.5 0$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-02-0 3 06:01:42$15 * @version $Revision: 1.51 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-02-07 23:52:54 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 339 339 } 340 340 341 psAbort( __func__,"Should never get here.\n");341 psAbort("Should never get here.\n"); 342 342 return 0; 343 343 } -
trunk/psLib/src/types/psArguments.c
r10999 r11686 7 7 * @author David Robbins, MHPCC 8 8 * 9 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 1-09 22:38:53$9 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-02-07 23:52:54 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 301 301 "Argument type (%x) is not supported.\n", arg->type); 302 302 return 0; 303 // psAbort( __func__,"Argument type (%x) is not supported.\n", arg->type);303 // psAbort("Argument type (%x) is not supported.\n", arg->type); 304 304 } 305 305 … … 347 347 break; 348 348 default: 349 // psAbort( __func__,"Argument type (%x) for %s is not supported.\n",349 // psAbort("Argument type (%x) for %s is not supported.\n", 350 350 // item->type, item->name); 351 351 psError(PS_ERR_BAD_PARAMETER_TYPE, true, -
trunk/psLib/src/types/psMetadataItemCompare.c
r11668 r11686 83 83 } 84 84 85 psAbort( __func__,"Should never get here.\n");85 psAbort("Should never get here.\n"); 86 86 return false; 87 87 } -
trunk/psLib/src/types/psMetadataItemParse.c
r11668 r11686 39 39 40 40 bool psMetadataItemParseBool(const psMetadataItem *item 41 )41 ) 42 42 { 43 43 PS_ASSERT_PTR_NON_NULL(item, false); -
trunk/psLib/test/imageops/tst_psImageStats.c
r7612 r11686 755 755 if ( myStats != tmpStats ) { 756 756 fprintf(stderr,"ERROR: input psStats not equal to return psStats\n"); 757 psAbort( __func__,"Failed input psStats equal to returned psStats");757 psAbort("Failed input psStats equal to returned psStats"); 758 758 } 759 759 fprintf(stderr, "The sample mean was %.2f\n", myStats->sampleMean ); -
trunk/psLib/test/math/tap_psPolyFit1D.c
r11656 r11686 331 331 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 332 332 if (0 != memLeaks) { 333 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);333 psAbort("Memory Leaks! (%d leaks)", memLeaks); 334 334 } 335 335 -
trunk/psLib/test/math/tap_psPolyFit2D.c
r11656 r11686 343 343 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 344 344 if (0 != memLeaks) { 345 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);345 psAbort("Memory Leaks! (%d leaks)", memLeaks); 346 346 } 347 347 return (testStatus); -
trunk/psLib/test/math/tap_psPolyFit3D.c
r11656 r11686 392 392 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 393 393 if (0 != memLeaks) { 394 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);394 psAbort("Memory Leaks! (%d leaks)", memLeaks); 395 395 } 396 396 -
trunk/psLib/test/math/tap_psPolyFit4D.c
r11656 r11686 450 450 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 451 451 if (0 != memLeaks) { 452 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);452 psAbort("Memory Leaks! (%d leaks)", memLeaks); 453 453 } 454 454 -
trunk/psLib/test/math/tap_psStats07.c
r11685 r11686 487 487 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 488 488 if (0 != memLeaks) { 489 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);489 psAbort("Memory Leaks! (%d leaks)", memLeaks); 490 490 } 491 491 -
trunk/psLib/test/math/tap_psStats09.c
r11685 r11686 338 338 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 339 339 if (0 != memLeaks) { 340 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);340 psAbort("Memory Leaks! (%d leaks)", memLeaks); 341 341 } 342 342 -
trunk/psLib/test/math/tst_psFunc01.c
r4973 r11686 39 39 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 40 40 if (0 != memLeaks) { 41 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);41 psAbort("Memory Leaks! (%d leaks)", memLeaks); 42 42 } 43 43 … … 58 58 59 59 if ( myGaussData->type.type != PS_TYPE_F32) { 60 psAbort( __func__,"p_psGaussianDev did not return a vector of type F32");60 psAbort("p_psGaussianDev did not return a vector of type F32"); 61 61 } 62 62 … … 66 66 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 67 67 if (0 != memLeaks) { 68 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);68 psAbort("Memory Leaks! (%d leaks)", memLeaks); 69 69 } 70 70 -
trunk/psLib/test/math/tst_psHist00.c
r7999 r11686 123 123 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 124 124 if (0 != memLeaks) { 125 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);125 psAbort("Memory Leaks! (%d leaks)", memLeaks); 126 126 } 127 127 psMemCheckCorruption(1); -
trunk/psLib/test/math/tst_psHist01.c
r7999 r11686 112 112 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 113 113 if (0 != memLeaks) { 114 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);114 psAbort("Memory Leaks! (%d leaks)", memLeaks); 115 115 } 116 116 psMemCheckCorruption(1); -
trunk/psLib/test/math/tst_psHist02.c
r4859 r11686 179 179 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 180 180 if ( 0 != memLeaks ) { 181 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks );181 psAbort("Memory Leaks! (%d leaks)", memLeaks ); 182 182 } 183 183 psMemCheckCorruption( 1 ); -
trunk/psLib/test/math/tst_psHist03.c
r7999 r11686 126 126 memLeaks = psMemCheckLeaks(currentId,NULL,NULL,false); 127 127 if (0 != memLeaks) { 128 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);128 psAbort("Memory Leaks! (%d leaks)", memLeaks); 129 129 } 130 130 psMemCheckCorruption(1); -
trunk/psLib/test/math/tst_psMathUtils.c
r6306 r11686 186 186 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 187 187 if (0 != memLeaks) { 188 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);188 psAbort("Memory Leaks! (%d leaks)", memLeaks); 189 189 } 190 190 -
trunk/psLib/test/math/tst_psMinimizeLMM.c
r7182 r11686 144 144 fflush(stdout); 145 145 // XXX: This is causing a seg fault 146 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);146 psAbort("Memory Leaks! (%d leaks)", memLeaks); 147 147 } 148 148 -
trunk/psLib/test/math/tst_psMinimizePowell.c
r6484 r11686 134 134 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 135 135 if (0 != memLeaks) { 136 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);136 psAbort("Memory Leaks! (%d leaks)", memLeaks); 137 137 } 138 138 printFooter(stdout, … … 209 209 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 210 210 if (0 != memLeaks) { 211 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);211 psAbort("Memory Leaks! (%d leaks)", memLeaks); 212 212 } 213 213 printFooter(stdout, … … 275 275 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 276 276 if (0 != memLeaks) { 277 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);277 psAbort("Memory Leaks! (%d leaks)", memLeaks); 278 278 } 279 279 printFooter(stdout, -
trunk/psLib/test/math/tst_psPolyFit1D.c
r7106 r11686 306 306 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 307 307 if (0 != memLeaks) { 308 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);308 psAbort("Memory Leaks! (%d leaks)", memLeaks); 309 309 } 310 310 -
trunk/psLib/test/math/tst_psPolyFit2D.c
r7105 r11686 316 316 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 317 317 if (0 != memLeaks) { 318 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);318 psAbort("Memory Leaks! (%d leaks)", memLeaks); 319 319 } 320 320 -
trunk/psLib/test/math/tst_psPolyFit3D.c
r7136 r11686 361 361 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 362 362 if (0 != memLeaks) { 363 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);363 psAbort("Memory Leaks! (%d leaks)", memLeaks); 364 364 } 365 365 -
trunk/psLib/test/math/tst_psPolyFit4D.c
r7137 r11686 413 413 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 414 414 if (0 != memLeaks) { 415 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);415 psAbort("Memory Leaks! (%d leaks)", memLeaks); 416 416 } 417 417 -
trunk/psLib/test/math/tst_psSpline1D.c
r6484 r11686 13 13 * @author GLG, MHPCC 14 14 * 15 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $16 * @date $Date: 200 6-02-24 23:43:15$15 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-02-07 23:52:54 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 128 128 psS32 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 129 129 if (0 != memLeaks) { 130 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);130 psAbort("Memory Leaks! (%d leaks)", memLeaks); 131 131 } 132 132 … … 156 156 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 157 157 if (0 != memLeaks) { 158 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);158 psAbort("Memory Leaks! (%d leaks)", memLeaks); 159 159 } 160 160 … … 268 268 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 269 269 if (0 != memLeaks) { 270 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);270 psAbort("Memory Leaks! (%d leaks)", memLeaks); 271 271 } 272 272 /****************************************************************************/ … … 347 347 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 348 348 if (0 != memLeaks) { 349 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);349 psAbort("Memory Leaks! (%d leaks)", memLeaks); 350 350 } 351 351 return (testStatus); … … 461 461 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 462 462 if (0 != memLeaks) { 463 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);463 psAbort("Memory Leaks! (%d leaks)", memLeaks); 464 464 } 465 465 /****************************************************************************/ … … 540 540 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 541 541 if (0 != memLeaks) { 542 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);542 psAbort("Memory Leaks! (%d leaks)", memLeaks); 543 543 } 544 544 return (testStatus); … … 644 644 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 645 645 if (0 != memLeaks) { 646 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);646 psAbort("Memory Leaks! (%d leaks)", memLeaks); 647 647 } 648 648 /****************************************************************************/ … … 723 723 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 724 724 if (0 != memLeaks) { 725 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);725 psAbort("Memory Leaks! (%d leaks)", memLeaks); 726 726 } 727 727 return (testStatus); … … 870 870 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 871 871 if (0 != memLeaks) { 872 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);872 psAbort("Memory Leaks! (%d leaks)", memLeaks); 873 873 } 874 874 return (testStatus); -
trunk/psLib/test/math/tst_psStats03.c
r7999 r11686 125 125 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 126 126 if (0 != memLeaks) { 127 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);127 psAbort("Memory Leaks! (%d leaks)", memLeaks); 128 128 } 129 129 -
trunk/psLib/test/math/tst_psStats05.c
r6302 r11686 74 74 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 75 75 if (0 != memLeaks) { 76 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);76 psAbort("Memory Leaks! (%d leaks)", memLeaks); 77 77 } 78 78 psMemCheckCorruption(1); -
trunk/psLib/test/math/tst_psStats06.c
r7999 r11686 136 136 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 137 137 if (0 != memLeaks) { 138 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);138 psAbort("Memory Leaks! (%d leaks)", memLeaks); 139 139 } 140 140 -
trunk/psLib/test/math/tst_psStats07.c
r7999 r11686 443 443 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 444 444 if (0 != memLeaks) { 445 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);445 psAbort("Memory Leaks! (%d leaks)", memLeaks); 446 446 } 447 447 -
trunk/psLib/test/math/tst_psStats08.c
r7999 r11686 179 179 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 180 180 if (0 != memLeaks) { 181 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);181 psAbort("Memory Leaks! (%d leaks)", memLeaks); 182 182 } 183 183 -
trunk/psLib/test/math/tst_psStats09.c
r7999 r11686 319 319 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 320 320 if (0 != memLeaks) { 321 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);321 psAbort("Memory Leaks! (%d leaks)", memLeaks); 322 322 } 323 323 -
trunk/psLib/test/types/tst_psBitSet.c
r8966 r11686 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $20 * @date $Date: 200 6-09-26 01:47:22$19 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2007-02-07 23:52:54 $ 21 21 * 22 22 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 123 123 psBitSetTest(bs,23) ) { 124 124 125 psAbort(" testBitSet01b","psBitSetAlloc failed to clear all bits at allocation.");125 psAbort("psBitSetAlloc failed to clear all bits at allocation."); 126 126 } 127 127 … … 135 135 bs = psBitSetSet(bs, 23); 136 136 if(bs != tempBs) { 137 psAbort("testBitSet01b", 138 "Return pointer not equal to output argument pointer."); 137 psAbort( "Return pointer not equal to output argument pointer."); 139 138 } 140 139 if(bs->bits[0] != 0x05) { 141 psAbort(__func__, 142 "Unexpected value for first byte (%d vs 5).", 140 psAbort( "Unexpected value for first byte (%d vs 5).", 143 141 bs->bits[0]); 144 142 } … … 154 152 ! psBitSetTest(bs,23) ) { 155 153 156 psAbort(" testBitSet01b","Failed to set a bit.");154 psAbort("Failed to set a bit."); 157 155 } 158 156 … … 173 171 psBitSetTest(bs,23) ) { 174 172 175 psAbort(" testBitSet01b","Failed to clear a bit.");173 psAbort("Failed to clear a bit."); 176 174 } 177 175 … … 195 193 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 196 194 psErrorStackPrint(stderr,"Error Stack:"); 197 psAbort(" testBitSet01c","psBitSetSet(bs, -4) didn't generate expected error.\n");195 psAbort("psBitSetSet(bs, -4) didn't generate expected error.\n"); 198 196 } 199 197 psFree(err); … … 206 204 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 207 205 psErrorStackPrint(stderr,"Error Stack:"); 208 psAbort(" testBitSet01c","psBitSetSet(bs, 200) didn't generate expected error.\n");206 psAbort("psBitSetSet(bs, 200) didn't generate expected error.\n"); 209 207 } 210 208 psFree(err); … … 217 215 if (err->code != PS_ERR_BAD_PARAMETER_NULL) { 218 216 psErrorStackPrint(stderr,"Error Stack:"); 219 psAbort(" testBitSet01c","psBitSetSet(NULL,0) didn't generate expected error.\n");217 psAbort("psBitSetSet(NULL,0) didn't generate expected error.\n"); 220 218 } 221 219 psFree(err); … … 242 240 ! psBitSetTest(bs,23) ) { 243 241 244 psAbort(" testBitSet01c","Set bits returned false.");242 psAbort("Set bits returned false."); 245 243 } 246 244 … … 248 246 psErrorClear(); 249 247 if(psBitSetTest(bs, -4)) { 250 psAbort(" testBitSet01c","psBitSetTest returned true with negative bit position.\n");248 psAbort("psBitSetTest returned true with negative bit position.\n"); 251 249 } 252 250 … … 254 252 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 255 253 psErrorStackPrint(stderr,"Error Stack:"); 256 psAbort(" testBitSet01c","psBitSetTest(bs, -4) didn't generate proper error.\n");254 psAbort("psBitSetTest(bs, -4) didn't generate proper error.\n"); 257 255 } 258 256 psFree(err); … … 261 259 psErrorClear(); 262 260 if(psBitSetTest(bs, 200)) { 263 psAbort(" testBitSet01c","psBitSetTest returned true with too-large bit position.\n");261 psAbort("psBitSetTest returned true with too-large bit position.\n"); 264 262 } 265 263 … … 267 265 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 268 266 psErrorStackPrint(stderr,"Error Stack:"); 269 psAbort(" testBitSet01c","psBitSetTest(bs, 200) didn't generate proper error.\n");267 psAbort("psBitSetTest(bs, 200) didn't generate proper error.\n"); 270 268 } 271 269 psFree(err); … … 274 272 psErrorClear(); 275 273 if (psBitSetTest(NULL, 0)) { 276 psAbort(" testBitSet01c","psBitSetTest returned true with NULL psBitSet.\n");274 psAbort("psBitSetTest returned true with NULL psBitSet.\n"); 277 275 } 278 276 … … 280 278 if (err->code != PS_ERR_BAD_PARAMETER_NULL) { 281 279 psErrorStackPrint(stderr,"Error Stack:"); 282 psAbort(" testBitSet01c","psBitSetTest(NULL, 0) didn't generate proper error.\n");280 psAbort("psBitSetTest(NULL, 0) didn't generate proper error.\n"); 283 281 } 284 282 psFree(err); … … 323 321 outbs = psBitSetOp(outbs, bs1, "AND", bs2); 324 322 if (outbs == NULL) { 325 psAbort( __func__,"psBitSetOp returned a NULL result for AND operation");323 psAbort("psBitSetOp returned a NULL result for AND operation"); 326 324 } 327 325 … … 333 331 binOut2 = psBitSetToString(bs2); 334 332 binOut3 = psBitSetToString(outbs); 335 psAbort( __func__,"psBitSetOp with AND operator failed.\nInput was %s, %s. Output was %s",333 psAbort("psBitSetOp with AND operator failed.\nInput was %s, %s. Output was %s", 336 334 binOut1,binOut2,binOut3); 337 335 } … … 343 341 outbs = psBitSetOp(NULL, bs1, "AND", bs2); 344 342 if (outbs == NULL) { 345 psAbort( __func__,"psBitSetOp failed to create a new psBitSet for the result");343 psAbort("psBitSetOp failed to create a new psBitSet for the result"); 346 344 } 347 345 for(psS32 i=0; i<24; i++) { … … 352 350 binOut2 = psBitSetToString(bs2); 353 351 binOut3 = psBitSetToString(outbs); 354 psAbort( __func__,"psBitSetOp with AND operator failed.\nInput was %s, %s. Output was %s",352 psAbort("psBitSetOp with AND operator failed.\nInput was %s, %s. Output was %s", 355 353 binOut1,binOut2,binOut3); 356 354 } … … 400 398 outbs = psBitSetOp(outbs, bs1, "OR", bs2); 401 399 if (outbs == NULL) { 402 psAbort( __func__,"psBitSetOp returned a NULL result for OR operation");400 psAbort("psBitSetOp returned a NULL result for OR operation"); 403 401 } 404 402 … … 410 408 binOut2 = psBitSetToString(bs2); 411 409 binOut3 = psBitSetToString(outbs); 412 psAbort( __func__,"psBitSetOp with OR operator failed.\nInput was %s, %s. Output was %s",410 psAbort("psBitSetOp with OR operator failed.\nInput was %s, %s. Output was %s", 413 411 binOut1,binOut2,binOut3); 414 412 } … … 420 418 outbs = psBitSetOp(NULL, bs1, "OR", bs2); 421 419 if (outbs == NULL) { 422 psAbort( __func__,"psBitSetOp failed to create a new psBitSet for the result");420 psAbort("psBitSetOp failed to create a new psBitSet for the result"); 423 421 } 424 422 for(psS32 i=0; i<24; i++) { … … 429 427 binOut2 = psBitSetToString(bs2); 430 428 binOut3 = psBitSetToString(outbs); 431 psAbort( __func__,"psBitSetOp with OR operator failed.\nInput was %s, %s. Output was %s",429 psAbort("psBitSetOp with OR operator failed.\nInput was %s, %s. Output was %s", 432 430 binOut1,binOut2,binOut3); 433 431 } … … 478 476 outbs = psBitSetOp(outbs, bs1, "XOR", bs2); 479 477 if (outbs == NULL) { 480 psAbort( __func__,"psBitSetOp returned a NULL result for XOR operation");478 psAbort("psBitSetOp returned a NULL result for XOR operation"); 481 479 } 482 480 … … 488 486 binOut2 = psBitSetToString(bs2); 489 487 binOut3 = psBitSetToString(outbs); 490 psAbort( __func__,"psBitSetOp with XOR operator failed.\nInput was %s, %s. Output was %s",488 psAbort("psBitSetOp with XOR operator failed.\nInput was %s, %s. Output was %s", 491 489 binOut1,binOut2,binOut3); 492 490 } … … 498 496 outbs = psBitSetOp(NULL, bs1, "XOR", bs2); 499 497 if (outbs == NULL) { 500 psAbort( __func__,"psBitSetOp failed to create a new psBitSet for the result");498 psAbort("psBitSetOp failed to create a new psBitSet for the result"); 501 499 } 502 500 for(psS32 i=0; i<24; i++) { … … 507 505 binOut2 = psBitSetToString(bs2); 508 506 binOut3 = psBitSetToString(outbs); 509 psAbort( __func__,"psBitSetOp with XOR operator failed.\nInput was %s, %s. Output was %s",507 psAbort("psBitSetOp with XOR operator failed.\nInput was %s, %s. Output was %s", 510 508 binOut1,binOut2,binOut3); 511 509 } … … 549 547 outbs = psBitSetNot(outbs, bs1); 550 548 if (outbs == NULL) { 551 psAbort( __func__,"psBitSetOp returned a NULL result for NOT operation");549 psAbort("psBitSetOp returned a NULL result for NOT operation"); 552 550 } 553 551 … … 558 556 binOut1 = psBitSetToString(bs1); 559 557 binOut2 = psBitSetToString(outbs); 560 psAbort( __func__,"psBitSetOp with NOT operator failed.\nInput was %s. Output was %s",558 psAbort("psBitSetOp with NOT operator failed.\nInput was %s. Output was %s", 561 559 binOut1,binOut2); 562 560 } … … 568 566 outbs = psBitSetNot(NULL, bs1); 569 567 if (outbs == NULL) { 570 psAbort( __func__,"psBitSetOp failed to create a new psBitSet for the result");568 psAbort("psBitSetOp failed to create a new psBitSet for the result"); 571 569 } 572 570 for(psS32 i=0; i<24; i++) { … … 576 574 binOut1 = psBitSetToString(bs1); 577 575 binOut2 = psBitSetToString(outbs); 578 psAbort( __func__,"psBitSetOp with NOT operator failed.\nInput was %s. Output was %s",576 psAbort("psBitSetOp with NOT operator failed.\nInput was %s. Output was %s", 579 577 binOut1,binOut2); 580 578 } … … 605 603 psBitSet* outbs = psBitSetOp(NULL, bs1, "XOR", bs2); 606 604 if (outbs != NULL) { 607 psAbort( __func__,"psBitSetOp did not return a NULL result when input sizes differ");605 psAbort("psBitSetOp did not return a NULL result when input sizes differ"); 608 606 } 609 607 … … 611 609 if (err->code != PS_ERR_BAD_PARAMETER_SIZE) { 612 610 psErrorStackPrint(stderr,"Error Stack:"); 613 psAbort( __func__,"psBitSetOp didn't generate expected error with operands' sizes differed.");611 psAbort("psBitSetOp didn't generate expected error with operands' sizes differed."); 614 612 } 615 613 psFree(err); … … 623 621 psBitSet* outbs2 = psBitSetOp(outbs, bs1, "XOR", bs2); 624 622 if (outbs2 == NULL) { 625 psAbort( __func__,"psBitSetOp failed when input size and output size differed (a recoverable error).");623 psAbort("psBitSetOp failed when input size and output size differed (a recoverable error)."); 626 624 } 627 625 if (outbs2 != outbs) { 628 psAbort( __func__,"psBitSetOp didn't reuse the given output struct.");626 psAbort("psBitSetOp didn't reuse the given output struct."); 629 627 } 630 628 if (outbs2->n != bs1->n) { 631 psAbort( __func__,"psBitSetOp did properly adjust the output psBitSet size.");629 psAbort("psBitSetOp did properly adjust the output psBitSet size."); 632 630 } 633 631 … … 636 634 outbs = psBitSetOp(outbs, bs1, "FOO", bs2); 637 635 if (outbs != NULL) { 638 psAbort( __func__,"psBitSetOp returned something in case of a bogus operation.");636 psAbort("psBitSetOp returned something in case of a bogus operation."); 639 637 } 640 638 err = psErrorLast(); 641 639 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 642 640 psErrorStackPrint(stderr,"Error Stack:"); 643 psAbort( __func__,"psBitSetOp didn't generate expected error with bogus operator.");641 psAbort("psBitSetOp didn't generate expected error with bogus operator."); 644 642 } 645 643 psFree(err); … … 655 653 if (err->code != PS_ERR_BAD_PARAMETER_VALUE) { 656 654 psErrorStackPrint(stderr,"Error Stack:"); 657 psAbort( __func__,"psBitSetOp didn't generate expected error with bogus operator.");655 psAbort("psBitSetOp didn't generate expected error with bogus operator."); 658 656 } 659 657 psFree(err); -
trunk/psLib/test/types/tst_psHash00.c
r4547 r11686 57 57 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 58 58 if (0 != memLeaks) { 59 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);59 psAbort("Memory Leaks! (%d leaks)", memLeaks); 60 60 } 61 61 psMemCheckCorruption(1); -
trunk/psLib/test/types/tst_psHash01.c
r4547 r11686 148 148 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 149 149 if (memLeaks != 0) { 150 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);150 psAbort("Memory Leaks! (%d leaks)", memLeaks); 151 151 } 152 152 psMemCheckCorruption(1); -
trunk/psLib/test/types/tst_psHash02.c
r4547 r11686 106 106 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 107 107 if (0 != memLeaks) { 108 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);108 psAbort("Memory Leaks! (%d leaks)", memLeaks); 109 109 } 110 110 psMemCheckCorruption(1); -
trunk/psLib/test/types/tst_psHash03.c
r4547 r11686 134 134 memLeaks = psMemCheckLeaks(currentId,NULL,stdout,false); 135 135 if (memLeaks != 0) { 136 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);136 psAbort("Memory Leaks! (%d leaks)", memLeaks); 137 137 } 138 138 psMemCheckCorruption(true); -
trunk/psLib/test/types/tst_psHash04.c
r4547 r11686 77 77 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 78 78 if (memLeaks != 0) { 79 psAbort( __func__,"Memory Leaks! (%d leaks)", memLeaks);79 psAbort("Memory Leaks! (%d leaks)", memLeaks); 80 80 } 81 81 psMemCheckCorruption(1);
Note:
See TracChangeset
for help on using the changeset viewer.
