From: Christian Grothoff Date: Fri, 4 Nov 2011 13:37:19 +0000 (+0000) Subject: cov fix X-Git-Tag: initial-import-from-subversion-38251~16057 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ef47bd5ce7f3ece36230f5132a694436cd9480a;p=oweals%2Fgnunet.git cov fix --- diff --git a/src/util/test_plugin.c b/src/util/test_plugin.c index dc34841f5..bfa3cf110 100644 --- a/src/util/test_plugin.c +++ b/src/util/test_plugin.c @@ -31,9 +31,13 @@ test_cb (void *cls, const char *libname, void *lib_ret) { + void *ret; + GNUNET_assert (0 == strcmp (cls, "test")); GNUNET_assert (0 == strcmp (lib_ret, "Hello")); - GNUNET_assert (0 == strcmp (GNUNET_PLUGIN_unload (libname, "out"), "World")); + ret = GNUNET_PLUGIN_unload (libname, "out"); + GNUNET_assert (NULL != ret); + GNUNET_assert (0 == strcmp (ret, "World")); }