Changeset 10989 for trunk/ippdb/tests
- Timestamp:
- Jan 8, 2007, 4:08:31 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 edited
-
alloc.c (modified) (4 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (2 diffs)
-
metadatafromobject.c (modified) (4 diffs)
-
objectfrommetadata.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r10753 r10989 244 244 newExpRow *object; 245 245 246 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 );246 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16 ); 247 247 248 248 if (!object) { … … 277 277 exit(EXIT_FAILURE); 278 278 } 279 psFree(object); 280 exit(EXIT_FAILURE); 281 } 279 282 280 283 psFree(object); … … 284 287 newImfileRow *object; 285 288 286 object = newImfileRowAlloc("a string", "a string", "a string", "a string" );289 object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16 ); 287 290 288 291 if (!object) { … … 303 306 } 304 307 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 308 psFree(object); 309 exit(EXIT_FAILURE); 310 } 305 311 psFree(object); 306 312 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r10753 r10989 118 118 } 119 119 120 if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 )) {121 exit(EXIT_FAILURE); 122 } 123 124 psDBCleanup(dbh); 125 } 126 127 { 128 psDB *dbh; 129 130 dbh = psDBInit("localhost", "test", NULL, "test"); 131 if (!dbh) { 132 exit(EXIT_FAILURE); 133 } 134 135 if (!newImfileInsert(dbh, "a string", "a string", "a string", "a string" )) {120 if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16)) { 121 exit(EXIT_FAILURE); 122 } 123 124 psDBCleanup(dbh); 125 } 126 127 { 128 psDB *dbh; 129 130 dbh = psDBInit("localhost", "test", NULL, "test"); 131 if (!dbh) { 132 exit(EXIT_FAILURE); 133 } 134 135 if (!newImfileInsert(dbh, "a string", "a string", "a string", "a string", -16)) { 136 136 exit(EXIT_FAILURE); 137 137 } -
trunk/ippdb/tests/insertobject.c
r10753 r10989 168 168 } 169 169 170 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 );170 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16); 171 171 if (!object) { 172 172 exit(EXIT_FAILURE); … … 190 190 } 191 191 192 object = newImfileRowAlloc("a string", "a string", "a string", "a string" );192 object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16); 193 193 if (!object) { 194 194 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r10753 r10989 302 302 bool status; 303 303 304 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 );304 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, -16); 305 305 if (!object) { 306 306 exit(EXIT_FAILURE); … … 341 341 exit(EXIT_FAILURE); 342 342 } 343 psFree(md); 344 exit(EXIT_FAILURE); 345 } 343 346 344 347 psFree(md); … … 350 353 bool status; 351 354 352 object = newImfileRowAlloc("a string", "a string", "a string", "a string" );355 object = newImfileRowAlloc("a string", "a string", "a string", "a string", -16); 353 356 if (!object) { 354 357 exit(EXIT_FAILURE); … … 375 378 } 376 379 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 380 psFree(md); 381 exit(EXIT_FAILURE); 382 } 377 383 psFree(md); 378 384 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r10753 r10989 450 450 exit(EXIT_FAILURE); 451 451 } 452 psFree(md); 453 exit(EXIT_FAILURE); 454 } 452 455 453 456 object = newExpObjectFromMetadata(md); … … 486 489 exit(EXIT_FAILURE); 487 490 } 491 psFree(object); 492 exit(EXIT_FAILURE); 493 } 488 494 489 495 psFree(object); … … 511 517 exit(EXIT_FAILURE); 512 518 } 519 psFree(md); 520 exit(EXIT_FAILURE); 521 } 513 522 514 523 object = newImfileObjectFromMetadata(md); … … 533 542 } 534 543 if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) { 544 psFree(object); 545 exit(EXIT_FAILURE); 546 } 535 547 psFree(object); 536 548 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
