From 8e8f3b525ff1898732196581c4cf05275940bdc3 Mon Sep 17 00:00:00 2001 From: Aleksandar Donchev Date: Wed, 25 Jun 2014 15:42:43 +0200 Subject: * Fixed routingreceiverasync test due a irritating quit without any console output if the libPluginRoutingInterfaceAsync.so is not at the desired file path. Signed-off-by: Christian Linke --- .../test/CAmRoutingReceiverAsync.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp b/PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp index 6fff1a4..7afca5f 100644 --- a/PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp +++ b/PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp @@ -65,18 +65,25 @@ void CAmEnvironment::SetUp() void* tempLibHandle = NULL; std::string libname("../plugins/routing/libPluginRoutingInterfaceAsync.so"); createFunc = getCreateFunction(libname, tempLibHandle); - if (!createFunc) { + libname = "/usr/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so"; + createFunc = getCreateFunction(libname, tempLibHandle); + + if(pReceiveInterface) + delete pReceiveInterface, pReceiveInterface = NULL; + fprintf(stderr, "RoutingSendInterface Test Entry point of RoutingPlugin not found\n"); logError("RoutingSendInterface Test Entry point of RoutingPlugin not found"); exit(1); } pRouter = createFunc(); - if (!pRouter) { - logError("RoutingSendInterface Test RoutingPlugin initialization failed. Entry Function not callable"); + if(pReceiveInterface) + delete pReceiveInterface, pReceiveInterface = NULL; + fprintf(stderr, "RoutingSendInterface Test RoutingPlugin initialization failed. Entry Function not callable\n"); + logError("RoutingSendInterface Test RoutingPlugin initialization failed. Entry Function not callable"); exit(1); } -- cgit v1.2.1