Changeset 9970 for trunk/ippdb/tests
- Timestamp:
- Nov 13, 2006, 5:15:56 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 edited
-
alloc.c (modified) (2 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (1 diff)
-
metadatafromobject.c (modified) (2 diffs)
-
objectfrommetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9788 r9970 11 11 summitExpRow *object; 12 12 13 object = summitExpRowAlloc("a string", "a string", "a string", " a string", "a string" );13 object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string" ); 14 14 15 15 if (!object) { … … 26 26 } 27 27 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 28 psFree(object); 29 exit(EXIT_FAILURE); 30 } 28 31 psFree(object); 29 32 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r9788 r9970 13 13 } 14 14 15 if (!summitExpInsert(dbh, "a string", "a string", "a string", " a string", "a string")) {15 if (!summitExpInsert(dbh, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 16 16 exit(EXIT_FAILURE); 17 17 } -
trunk/ippdb/tests/insertobject.c
r9788 r9970 14 14 } 15 15 16 object = summitExpRowAlloc("a string", "a string", "a string", " a string", "a string");16 object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"); 17 17 if (!object) { 18 18 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r9788 r9970 13 13 bool status; 14 14 15 object = summitExpRowAlloc("a string", "a string", "a string", " a string", "a string");15 object = summitExpRowAlloc("a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string"); 16 16 if (!object) { 17 17 exit(EXIT_FAILURE); … … 34 34 } 35 35 if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) { 36 psFree(md); 37 exit(EXIT_FAILURE); 38 } 36 39 psFree(md); 37 40 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r9788 r9970 25 25 exit(EXIT_FAILURE); 26 26 } 27 psFree(md); 28 exit(EXIT_FAILURE); 29 } 27 30 if (!psMetadataAddStr(md, PS_LIST_TAIL, "exp_type", 0, NULL, "a string")) { 28 31 psFree(md); … … 51 54 } 52 55 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 56 psFree(object); 57 exit(EXIT_FAILURE); 58 } 53 59 psFree(object); 54 60 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
