kerneltest/e32test/mmu/t_shbuf.cpp
changeset 201 43365a9b78a3
parent 109 b3a1d9898418
child 281 13fbfa31d2ba
--- a/kerneltest/e32test/mmu/t_shbuf.cpp	Wed Jun 23 19:44:53 2010 +0300
+++ b/kerneltest/e32test/mmu/t_shbuf.cpp	Tue Jul 06 15:50:07 2010 +0300
@@ -624,12 +624,14 @@
 		{
 		RShBuf buf;
 		r = buf.Alloc(aPool);
+		RDebug::Printf("alloc buf %d returned %d", bufarray.Count(), r);
 		if (r==KErrNoMemory && KTestPoolSizeInBufs>bufarray.Count())
 			{
 			// try again after a delay, to allow for background resource allocation
 			
 			User::After(1000000);
 			r = buf.Alloc(aPool);
+			RDebug::Printf("re-alloc buf %d returned %d", bufarray.Count(), r);
 			}
 		if (!r)
 			{
@@ -647,6 +649,7 @@
 		{
 		bufarray[--n].Close();
 		}
+	RDebug::Printf("closed bufs");
 
 	User::After(500000);
 
@@ -655,11 +658,13 @@
 	while (n<bufarray.Count())
 		{
 		r = bufarray[n].Alloc(aPool);
+		RDebug::Printf("alloc buf %d returned %d", n, r);
 		if (r==KErrNoMemory)
 			{
 			// try again after a delay, to allow for background resource allocation
 			User::After(1000000);
 			r = bufarray[n].Alloc(aPool);
+			RDebug::Printf("re-alloc buf %d returned %d", n, r);
 			}
 		test_Assert(r == KErrNone, test.Printf(_L("n=%d r=%d\n"), n, r));
 		if(aligned)
@@ -669,12 +674,14 @@
 
 	RShBuf extrabuf;
 	r = extrabuf.Alloc(aPool);
+	RDebug::Printf("alloc extra buf returned %d", r);
 	test_Equal(KErrNoMemory, r);
 
 	while (n)
 		{
 		bufarray[--n].Close();
 		}
+	RDebug::Printf("closed bufs");
 
 	bufarray.Close();
 	}