[PATCH] Fix test-core.cc
- From: Dodji Seketeli <dodji seketeli org>
- To: Nemiver Development <nemiver-list gnome org>
- Subject: [PATCH] Fix test-core.cc
- Date: Sun, 19 Feb 2012 19:36:58 +0100
The 'runtestcore' test program that use to manually test the basic
core loading functions of the IDebugger interface was broken. It
needed to use the debugger_utils::load_debugger_iface_with_confmgr to
load the dynmod of the GDB debugging engine along with the right
configuration manager.
Fixed thus. Tested and applied to master.
commit 109f599e1c3a490b5a457b8f2ccc08b3c7cccc9e
Author: Dodji Seketeli <dodji seketeli org>
Date: Sun Feb 19 18:50:07 2012 +0100
Fix test-core.cc
* tests/test-core.cc (main): Use
debugger_utils::load_debugger_iface_with_confmgr to ensure the
configuration manager is loaded too.
* Makefile.am (runtestcore): Link this executable with
libdebuggerutils.la.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6a55a02..afbe7fd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -90,7 +90,8 @@ $(top_builddir)/src/dbgengine/libdebuggerutils.la
runtestcore_SOURCES=$(h)/test-core.cc
runtestcore_LDADD=@NEMIVERCOMMON_LIBS@ \
-$(top_builddir)/src/common/libnemivercommon.la
+$(top_builddir)/src/common/libnemivercommon.la \
+$(top_builddir)/src/dbgengine/libdebuggerutils.la
runteststdout_SOURCES=$(h)/test-stdout.cc
runteststdout_LDADD=@NEMIVERCOMMON_LIBS@ \
diff --git a/tests/test-core.cc b/tests/test-core.cc
index 60fdd1d..4040d10 100644
--- a/tests/test-core.cc
+++ b/tests/test-core.cc
@@ -4,7 +4,7 @@
#include "common/nmv-initializer.h"
#include "common/nmv-safe-ptr-utils.h"
#include "common/nmv-dynamic-module.h"
-#include "nmv-i-debugger.h"
+#include "nmv-debugger-utils.h"
using namespace nemiver;
using namespace nemiver::common;
@@ -109,9 +109,9 @@ main (int a_argc, char *a_argv[])
THROW_IF_FAIL (loop);
- DynamicModuleManager module_manager;
+ //load the IDebugger interface
IDebuggerSafePtr debugger =
- module_manager.load_iface<IDebugger> ("gdbengine", "IDebugger");
+ debugger_utils::load_debugger_iface_with_confmgr ();
debugger->set_event_loop_context (loop->get_context ());
--
Dodji
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]