From 3ef47bd5ce7f3ece36230f5132a694436cd9480a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 4 Nov 2011 13:37:19 +0000 Subject: [PATCH] cov fix --- src/util/test_plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")); } -- 2.25.1