diff options
author | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2014-06-25 15:42:43 +0200 |
---|---|---|
committer | Aleksandar Donchev <Aleksander.Donchev@partner.bmw.de> | 2014-06-25 15:42:43 +0200 |
commit | 8e8f3b525ff1898732196581c4cf05275940bdc3 (patch) | |
tree | d6f15cc1891683c7c9bdf2bb317077e1fe4b3b06 | |
parent | 3e40b93117d61d393213ee038b1b83a5abd3a1a6 (diff) | |
download | audiomanager-8e8f3b525ff1898732196581c4cf05275940bdc3.tar.gz |
* 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 <christian.linke@bmw.de>
-rw-r--r-- | PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp | 13 |
1 files 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<IAmRoutingSend*()>(libname, tempLibHandle); - if (!createFunc) { + libname = "/usr/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so"; + createFunc = getCreateFunction<IAmRoutingSend*()>(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); } |