Hi,
First I like your library!
I was woundering if you have seen CPPUNIT_ASSERT only works with simple
data types like:
int rval = ioctl->issue_cmd (srb->get_uscsi_cmd ());
CPPUNIT_ASSERT (rval == 0);
However when I do the following CPPUNIT_ASSERT fails because the srb
data is zeroed out by the macro:
CPPUNIT_ASSERT (ioctl->issue_cmd (srb->get_uscsi_cmd ()) == 0);
I have also seen CPPUNIT_ASSERT fail where struct uscsi_cmd *srb is set
to null by the macro:
CPPUNIT_ASSERT (srb != NULL);
I compiled the CPPUNIT library with Forte 6.2 by setting
CC=/opt/SUNWspro/bin/cc and CXX=/opt/SUNWspro/bin/CC before runing
./configure
Thanks,
David
|