--- a/smsprotocols/smsstack/test/smsstackbaseteststeps.cpp Thu Aug 19 11:03:36 2010 +0300
+++ b/smsprotocols/smsstack/test/smsstackbaseteststeps.cpp Tue Aug 31 16:23:08 2010 +0300
@@ -307,12 +307,13 @@
RSmsSocketReadStream readstream(aSocket);
TRAPD(ret, readstream >> *smsMessage);
- TPckgBuf<TUint> sbuf;
TRequestStatus status;
-
+
+ // aDesc arguments passed to Ioctl() method have been changed to NULL to keep it compliant with
+ // usage rules and to prevent OOM tests from failing
if(ret==KErrNone)
{
- aSocket.Ioctl(aIoctl, status, &sbuf, KSolSmsProv);
+ aSocket.Ioctl(aIoctl, status, NULL, KSolSmsProv);
User::WaitForRequest(status);
CleanupStack::Pop(smsMessage);
TESTCHECK(status.Int(), KErrNone, "Notifying the SMS stack that message was received successfully");
@@ -321,7 +322,7 @@
//An error has occured, no message has been received
else
{
- aSocket.Ioctl(KIoctlReadMessageFailed, status, &sbuf, KSolSmsProv);
+ aSocket.Ioctl(KIoctlReadMessageFailed, status, NULL, KSolSmsProv);
User::WaitForRequest(status);
TESTCHECK(status.Int(), KErrNone, "Notifying the SMS stack that message was not received");
ERR_PRINTF2(_L("Receiving message failed %d"), ret);