From 916bd0264acac29aafd8ec5808053c822261f54d Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 2 Mar 2015 12:20:14 +0100 Subject: [PATCH] mtapi_c: fixed plugin test --- mtapi_c/test/embb_mtapi_test_plugin.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mtapi_c/test/embb_mtapi_test_plugin.cc b/mtapi_c/test/embb_mtapi_test_plugin.cc index ba9e247..2a13fee 100644 --- a/mtapi_c/test/embb_mtapi_test_plugin.cc +++ b/mtapi_c/test/embb_mtapi_test_plugin.cc @@ -32,6 +32,7 @@ #include +#include #include #include #include @@ -188,6 +189,10 @@ void PluginTest::TestBasic() { MTAPI_CHECK_STATUS(status); status = MTAPI_ERR_UNKNOWN; + plugin_initialize(THIS_DOMAIN_ID, THIS_NODE_ID, &status); + MTAPI_CHECK_STATUS(status); + + status = MTAPI_ERR_UNKNOWN; action = mtapi_ext_plugin_action_create( PLUGIN_JOB_ID, plugin_task_start, @@ -223,8 +228,14 @@ void PluginTest::TestBasic() { MTAPI_CHECK_STATUS(status); status = MTAPI_ERR_UNKNOWN; + plugin_finalize(&status); + MTAPI_CHECK_STATUS(status); + + status = MTAPI_ERR_UNKNOWN; mtapi_finalize(&status); MTAPI_CHECK_STATUS(status); + PT_EXPECT_EQ(embb_get_bytes_allocated(), 0u); + embb_mtapi_log_info("...done\n\n"); } -- libgit2 0.26.0