smsprotocols/smsstack/test/smsstackbaseteststeps.cpp
changeset 44 8b72faa1200f
parent 20 244d7c5f118e
child 66 07a122eea281
--- a/smsprotocols/smsstack/test/smsstackbaseteststeps.cpp	Mon May 24 18:38:31 2010 +0100
+++ b/smsprotocols/smsstack/test/smsstackbaseteststeps.cpp	Tue Jun 22 11:02:32 2010 +0100
@@ -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);