This fails in 1.11.0 as well.
I don't know if this is a bug or a case of "just don't use it
I found this while writing some unit tests for a corba
apllication. Corba has its own type to represent string
data. When verifying the corba string return value from a
server call, I converted the corba string and the expected
std::string to const char* and used
CPPUNIT_ASSERT_EQUAL. The strings matched but
the assertion failed. I ending up adding the following
code to the .cpp file of my test class to fix the problem.
struct assertion_traits<const char*>
static bool equal(const char* x, const char* y)
return !strcmp(x, y);
static std::string toString(const char *x)
A Test class for this is attached.
my email is firstname.lastname@example.org
Log in to post a comment.