--- a/stif/TestEngine/src/TestCaseController.cpp Wed Jun 09 11:23:41 2010 +0300
+++ b/stif/TestEngine/src/TestCaseController.cpp Mon Jun 21 17:25:56 2010 +0300
@@ -219,7 +219,7 @@
delete iRDebugLogger;
delete iTimeout;
-
+ delete iTestCaseArguments;
}
/*
@@ -253,10 +253,23 @@
iState = ETestCaseRunning;
+ delete iTestCaseArguments;
+ iTestCaseArguments = NULL;
+
+ TInt testCaseArgumentsLength = iMessage.GetDesLength( 1 );
+ if ( ( testCaseArgumentsLength != KErrArgument ) && ( testCaseArgumentsLength != KErrBadDescriptor ) )
+ {
+ iTestCaseArguments = HBufC::NewL( testCaseArgumentsLength );
+ TPtr testCaseArgumentsPtr( iTestCaseArguments->Des() );
+ User::LeaveIfError( iMessage.Read( 1, testCaseArgumentsPtr ) );
+ iTestExecution.RunTestCase( iResultPckg, *iTestCaseArguments, iStatus );
+ }
+ else
+ {
+ iTestExecution.RunTestCase( iResultPckg, iStatus );
+ }
SetActive();
- iTestExecution.RunTestCase( iResultPckg, iStatus );
-
// If testcase has timeout (handler), then start it
if ( iTimeout )
{