- if (typeid(__expected) == typeid(test_return_t))
- {
- const char *expected_str= test_strerror(test_return_t(__expected));
- const char *got_str= test_strerror(test_return_t(__actual));
-
- libtest::stream::make_cerr(file, line, func) << "Expected \""
- << expected_str
- << "\" got \""
- << got_str
- << "\"";
- }
-#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
- else if (typeid(__expected) == typeid(memcached_return_t))
- {
- libtest::stream::make_cerr(file, line, func) << "Expected \""
- << memcached_strerror(NULL, memcached_return_t(__expected))
- << "\" got \""
- << memcached_strerror(NULL, memcached_return_t(__actual)) << "\"";
- }
-#endif
-#if defined(HAVE_LIBGEARMAN) && HAVE_LIBGEARMAN
- else if (typeid(__expected) == typeid(gearman_return_t))
- {
- libtest::stream::make_cerr(file, line, func) << "Expected \""
- << gearman_strerror(gearman_return_t(__expected))
- << "\" got \""
- << gearman_strerror(gearman_return_t(__actual)) << "\"";
- }
-#endif
- else