Changeset 988 for trunk/psLib/test/collections/tst_psSort_04.c
- Timestamp:
- Jun 10, 2004, 1:14:22 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psSort_04.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psSort_04.c
r831 r988 5 5 * This test driver contains the following tests for psSort test point 4: 6 6 * A) Attempt to sort with null input vector 7 * B) Attempt to sort with null output vector 8 * C) Free vectors 7 * B) Free vectors 9 8 * 10 9 * @author Ross Harman, MHPCC 11 10 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06- 02 23:29:29$11 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-10 23:14:22 $ 14 13 * 15 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 23 { 25 24 psVector *badIn = NULL; 26 psVector *badOut = NULL;27 psVector *goodIn = psVectorAlloc(5, PS_TYPE_F32);28 25 psVector *goodOut = psVectorAlloc(5, PS_TYPE_F32); 29 26 … … 34 31 printFooter(stdout, "psSort", "Attempt to sort with null input vector", true); 35 32 36 // Test B - Attempt to sort with null output vector 37 printNegativeTestHeader(stdout,"psSort", "Attempt to sort with null output vector", 38 "Null output vector", 0); 39 badOut = psSort(badOut, goodIn); 40 printFooter(stdout, "psSort", "Attempt to sort with null output vector", true); 41 42 // Test C - Free vectors 33 // Test B - Free vectors 43 34 printPositiveTestHeader(stdout, "psSort", "Free vectors"); 44 psVectorFree(goodIn);45 35 psVectorFree(goodOut); 46 36 psMemCheckLeaks(0, NULL, stdout);
Note:
See TracChangeset
for help on using the changeset viewer.
