From: Konrad R. <kon...@us...> - 2005-03-22 22:03:43
|
Update of /cvsroot/sblim/indication_helper/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10071/test Modified Files: Test_genIndication.c Log Message: Fixing problems associated with one of the test-cases failing. Index: Test_genIndication.c =================================================================== RCS file: /cvsroot/sblim/indication_helper/test/Test_genIndication.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Test_genIndication.c 2 Feb 2005 19:06:51 -0000 1.1.1.1 +++ Test_genIndication.c 22 Mar 2005 22:02:57 -0000 1.2 @@ -54,6 +54,7 @@ CMPIContext* _fake_prepareAttachThread(CMPIBroker* mb, CMPIContext* ctx); CMPIStatus _fake_attachThread (CMPIBroker*b, CMPIContext*c); CMPIStatus _fake_detachThread (CMPIBroker* mb, CMPIContext* ctx); +CMPIString* _fake_toString (CMPIBroker* mb, void* object, CMPIStatus* rc); /* Test routines. Everytime they are called, the @@ -96,7 +97,7 @@ } if (debug) - fprintf(stderr,"test_string called\n"); + fprintf(stderr,"test_string called [%s].\n", temp); return IND_OK; } @@ -629,8 +630,14 @@ if (debug) fprintf(stderr,"_fake_detachThread called.\n"); return good; -} +} +CMPIString* _fake_toString (CMPIBroker* mb, void* object, CMPIStatus* rc) +{ + CMPIString *val = mb->eft->newString(mb, "Unknown", rc); + return val; + +} int main (void ) { @@ -663,7 +670,8 @@ b.eft->newObjectPath = _fake_newObjectPath; b.eft->newInstance = _fake_newInstance; b.eft->newSelectExp = _fake_newSelectExp; - + b.eft->toString = _fake_toString; + /* Register the fake broker */ assert ( ind_reg(&b, &ctx) == IND_OK); |