testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwtestrunner/src/symbianunittestrunner.cpp
changeset 1 bbd31066657e
parent 0 3e07fef1e154
--- a/testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwtestrunner/src/symbianunittestrunner.cpp	Mon Mar 08 15:03:44 2010 +0800
+++ b/testexecfw/symbianunittestfw/sutfw/sutfwcore/sutfwtestrunner/src/symbianunittestrunner.cpp	Mon Mar 29 14:46:27 2010 +0800
@@ -136,11 +136,14 @@
         {
         TPtrC16 testDllName( aTestDllNames.MdcaPoint( i ) );
         RLibrary library;
-        if ( library.Load( testDllName ) != KErrNone )
+        TInt ret;
+        ret = library.Load( testDllName );
+        if ( ret != KErrNone )
             {
             iUiCallBack.InfoMsg( KFailedToFindDll, testDllName );
-	    SUT_LOG_FORMAT(KFailedToFindDll, &testDllName);
-            User::Leave( KErrNotFound );
+            SUT_LOG_FORMAT(KFailedToFindDll, &testDllName);
+            //User::Leave( KErrNotFound );
+            User::Leave( ret );
             } 
         CleanupClosePushL( library );
         // The second UID of the dll to be used must be compatible