Changeset 10748 for trunk/ippdb/tests
- Timestamp:
- Dec 15, 2006, 12:20:35 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 11 edited
-
alloc.c (modified) (1 diff)
-
createtable.c (modified) (1 diff)
-
dbcleanup.c (modified) (1 diff)
-
dbsetup.c (modified) (1 diff)
-
droptable.c (modified) (1 diff)
-
insert.c (modified) (1 diff)
-
insertfits.c (modified) (1 diff)
-
insertobject.c (modified) (1 diff)
-
metadatafromobject.c (modified) (1 diff)
-
objectfrommetadata.c (modified) (2 diffs)
-
selectrowsfits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r10681 r10748 1490 1490 1491 1491 { 1492 p4 PWarpedImfileRow *object;1493 1494 object = p4 PWarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string" );1492 p4WarpedImfileRow *object; 1493 1494 object = p4WarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string" ); 1495 1495 1496 1496 if (!object) { -
trunk/ippdb/tests/createtable.c
r10681 r10748 523 523 } 524 524 525 if(!p4 PWarpedImfileCreateTable(dbh)) {525 if(!p4WarpedImfileCreateTable(dbh)) { 526 526 exit(EXIT_FAILURE); 527 527 } -
trunk/ippdb/tests/dbcleanup.c
r10681 r10748 45 45 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4Run"); 46 46 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4InputImfile"); 47 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4 PWarpedImfile");47 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4WarpedImfile"); 48 48 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4PStackedImfile"); 49 49 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4PDiffImfile"); -
trunk/ippdb/tests/dbsetup.c
r10681 r10748 115 115 p4InputImfileCreateTable(dbh); 116 116 117 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4 PWarpedImfile");118 p4 PWarpedImfileCreateTable(dbh);117 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4WarpedImfile"); 118 p4WarpedImfileCreateTable(dbh); 119 119 120 120 p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS p4PStackedImfile"); -
trunk/ippdb/tests/droptable.c
r10681 r10748 523 523 } 524 524 525 if (!p4 PWarpedImfileDropTable(dbh)) {525 if (!p4WarpedImfileDropTable(dbh)) { 526 526 exit(EXIT_FAILURE); 527 527 } -
trunk/ippdb/tests/insert.c
r10681 r10748 523 523 } 524 524 525 if (!p4 PWarpedImfileInsert(dbh, -32, "a string", -32, "a string", "a string", "a string", "a string")) {525 if (!p4WarpedImfileInsert(dbh, -32, "a string", -32, "a string", "a string", "a string", "a string")) { 526 526 exit(EXIT_FAILURE); 527 527 } -
trunk/ippdb/tests/insertfits.c
r10681 r10748 908 908 } 909 909 910 if (!p4 PWarpedImfileInsertFits(dbh, fits)) {910 if (!p4WarpedImfileInsertFits(dbh, fits)) { 911 911 exit(EXIT_FAILURE); 912 912 } -
trunk/ippdb/tests/insertobject.c
r10681 r10748 755 755 { 756 756 psDB *dbh; 757 p4 PWarpedImfileRow *object;758 759 dbh = psDBInit("localhost", "test", NULL, "test"); 760 if (!dbh) { 761 exit(EXIT_FAILURE); 762 } 763 764 object = p4 PWarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string");765 if (!object) { 766 exit(EXIT_FAILURE); 767 } 768 769 if (!p4 PWarpedImfileInsertObject(dbh, object)) {757 p4WarpedImfileRow *object; 758 759 dbh = psDBInit("localhost", "test", NULL, "test"); 760 if (!dbh) { 761 exit(EXIT_FAILURE); 762 } 763 764 object = p4WarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string"); 765 if (!object) { 766 exit(EXIT_FAILURE); 767 } 768 769 if (!p4WarpedImfileInsertObject(dbh, object)) { 770 770 exit(EXIT_FAILURE); 771 771 } -
trunk/ippdb/tests/metadatafromobject.c
r10681 r10748 1763 1763 { 1764 1764 psMetadata *md; 1765 p4 PWarpedImfileRow *object;1766 bool status; 1767 1768 object = p4 PWarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string");1769 if (!object) { 1770 exit(EXIT_FAILURE); 1771 } 1772 1773 md = p4 PWarpedImfileMetadataFromObject(object);1765 p4WarpedImfileRow *object; 1766 bool status; 1767 1768 object = p4WarpedImfileRowAlloc(-32, "a string", -32, "a string", "a string", "a string", "a string"); 1769 if (!object) { 1770 exit(EXIT_FAILURE); 1771 } 1772 1773 md = p4WarpedImfileMetadataFromObject(object); 1774 1774 if (!md) { 1775 1775 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r10681 r10748 2700 2700 { 2701 2701 psMetadata *md; 2702 p4 PWarpedImfileRow *object;2702 p4WarpedImfileRow *object; 2703 2703 2704 2704 md = psMetadataAlloc(); … … 2732 2732 } 2733 2733 2734 object = p4 PWarpedImfileObjectFromMetadata(md);2734 object = p4WarpedImfileObjectFromMetadata(md); 2735 2735 if (!object) { 2736 2736 psFree(md); -
trunk/ippdb/tests/selectrowsfits.c
r10681 r10748 769 769 } 770 770 771 if (!p4 PWarpedImfileSelectRowsFits(dbh, fits, NULL, 1)) {771 if (!p4WarpedImfileSelectRowsFits(dbh, fits, NULL, 1)) { 772 772 exit(EXIT_FAILURE); 773 773 }
Note:
See TracChangeset
for help on using the changeset viewer.
