Changeset 4203 for trunk/psLib/test/collections/tst_psPixels.c
- Timestamp:
- Jun 9, 2005, 1:51:49 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psPixels.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psPixels.c
r4155 r4203 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 6$7 * @version $Revision: 1.7 $ 8 8 * $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-0 8 19:48:15$9 * @date $Date: 2005-06-09 23:51:49 $ 10 10 * 11 11 * Copyright 2005 Maui High Performance Computing Center, University of Hawaii … … 58 58 return 2; 59 59 } 60 if (p0->n != 0) {60 if (p0->n != p0->nalloc) { 61 61 psError(PS_ERR_UNKNOWN, true, 62 62 "psPixelsAlloc failed to set n = 0"); … … 84 84 p1->data[0].y = 2; 85 85 86 if (p1->n != 0) {87 psError(PS_ERR_UNKNOWN, true, 88 "psPixelsAlloc failed to set n = 0");86 if (p1->n != p1->nalloc) { 87 psError(PS_ERR_UNKNOWN, true, 88 "psPixelsAlloc failed to set n = %d", p1->nalloc); 89 89 return 13; 90 90 } … … 113 113 } 114 114 115 if (p2->n != 0) {116 psError(PS_ERR_UNKNOWN, true, 117 "psPixelsAlloc failed to set n = 0");115 if (p2->n != p2->nalloc) { 116 psError(PS_ERR_UNKNOWN, true, 117 "psPixelsAlloc failed to set n = %d", p2->nalloc); 118 118 return 13; 119 119 } … … 149 149 return 2; 150 150 } 151 if (p0->n != 0) {151 if (p0->n != p0->nalloc) { 152 152 psError(PS_ERR_UNKNOWN, true, 153 153 "psPixelsRealloc failed to set n = 0");
Note:
See TracChangeset
for help on using the changeset viewer.
