Changeset 10328 for trunk/ippdb/tests
- Timestamp:
- Nov 30, 2006, 2:46: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
r10238 r10328 67 67 summitImfileRow *object; 68 68 69 object = summitImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string" );69 object = summitImfileRowAlloc("a string", "a string", "a string", "a string", -32, "a string", "a string", "a string", "a string" ); 70 70 71 71 if (!object) { … … 82 82 } 83 83 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 84 psFree(object); 85 exit(EXIT_FAILURE); 86 } 87 if (strncmp(object->file_id, "a string", MAX_STRING_LENGTH)) { 84 88 psFree(object); 85 89 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r10238 r10328 43 43 } 44 44 45 if (!summitImfileInsert(dbh, "a string", "a string", "a string", -32, "a string", "a string", "a string", "a string")) {45 if (!summitImfileInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string", "a string", "a string", "a string")) { 46 46 exit(EXIT_FAILURE); 47 47 } -
trunk/ippdb/tests/insertobject.c
r10238 r10328 58 58 } 59 59 60 object = summitImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string");60 object = summitImfileRowAlloc("a string", "a string", "a string", "a string", -32, "a string", "a string", "a string", "a string"); 61 61 if (!object) { 62 62 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r10238 r10328 85 85 bool status; 86 86 87 object = summitImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string");87 object = summitImfileRowAlloc("a string", "a string", "a string", "a string", -32, "a string", "a string", "a string", "a string"); 88 88 if (!object) { 89 89 exit(EXIT_FAILURE); … … 106 106 } 107 107 if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) { 108 psFree(md); 109 exit(EXIT_FAILURE); 110 } 111 if (strncmp(psMetadataLookupPtr(&status, md, "file_id"), "a string", MAX_STRING_LENGTH)) { 108 112 psFree(md); 109 113 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r10238 r10328 121 121 exit(EXIT_FAILURE); 122 122 } 123 if (!psMetadataAddStr(md, PS_LIST_TAIL, "file_id", 0, NULL, "a string")) { 124 psFree(md); 125 exit(EXIT_FAILURE); 126 } 123 127 if (!psMetadataAddS32(md, PS_LIST_TAIL, "bytes", 0, NULL, -32)) { 124 128 psFree(md); … … 159 163 } 160 164 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 165 psFree(object); 166 exit(EXIT_FAILURE); 167 } 168 if (strncmp(object->file_id, "a string", MAX_STRING_LENGTH)) { 161 169 psFree(object); 162 170 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
