[nemiver] Fix test-core.cc
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Fix test-core.cc
- Date: Sun, 19 Feb 2012 18:16:24 +0000 (UTC)
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.
tests/Makefile.am | 3 ++-
tests/test-core.cc | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
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 ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]