* Fixed routingreceiverasync test due a irritating quit without any console output...
authorAleksandar Donchev <Aleksander.Donchev@partner.bmw.de>
Wed, 25 Jun 2014 13:42:43 +0000 (15:42 +0200)
committerAleksandar Donchev <Aleksander.Donchev@partner.bmw.de>
Wed, 25 Jun 2014 13:42:43 +0000 (15:42 +0200)
Signed-off-by: Christian Linke <christian.linke@bmw.de>
PluginRoutingInterfaceAsync/test/CAmRoutingReceiverAsync.cpp

index 6fff1a4..7afca5f 100644 (file)
@@ -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);
     }