commsfwutils/commsbufs/TS_mbufmgr/Test06SplitL.cpp
branchRCL_3
changeset 26 b564fb5fd78b
parent 25 9d7ce34704c8
--- a/commsfwutils/commsbufs/TS_mbufmgr/Test06SplitL.cpp	Tue Aug 31 16:25:36 2010 +0300
+++ b/commsfwutils/commsbufs/TS_mbufmgr/Test06SplitL.cpp	Wed Sep 01 12:35:48 2010 +0100
@@ -162,7 +162,17 @@
 	//-------------- substep 7 --------------------
 	Log(_L("  07 Split Chain1. The 2nd part goes to Chain2:"));
 	RMBufChain aChain2;
-	TRAP(ret,aChain1.SplitL(aOffset, aChain2));
+	
+	if(forceSmallBuf)
+	    {
+        RMBufAllocator allocator;
+        ret= aChain1.Split(aOffset, aChain2, allocator);
+	    }
+	else
+	    {
+        TRAP(ret,aChain1.SplitL(aOffset, aChain2));
+	    }
+	
 	if (ret != KErrNone)
 		{
 		Log(_L("Error: Couldn't Split"));