--- a/kerneltest/e32test/video/t_videomemory.cpp Sat Feb 20 00:10:51 2010 +0200
+++ b/kerneltest/e32test/video/t_videomemory.cpp Fri Mar 12 15:50:11 2010 +0200
@@ -115,7 +115,6 @@
test(KErrNone == ret);
pChunkBase = reinterpret_cast<TUint32 *>(chunk.Base());
- test.Printf(_L("Display Memory Address = %08x\n"), reinterpret_cast<TUint>(pChunkBase));
*pChunkBase = KTestValue2;
test(KTestValue2 == *pChunkBase);
// We should see the new value through the pMemory pointer!
@@ -123,7 +122,8 @@
{
test(KTestValue2 == *pMemory);
}
-
+ // print it after test as this will corrupt memory buffer
+ test.Printf(_L("Display Memory Address = %08x\n"), reinterpret_cast<TUint>(pChunkBase));
}
else
{
@@ -186,10 +186,11 @@
test(KErrNone == ret);
pChunkBase2 = reinterpret_cast<TUint32 *>(chunk2.Base());
- test.Printf(_L("Display Memory Address = %08x\n"), reinterpret_cast<TUint>(pChunkBase));
test(KTestValue2 == *pChunkBase2);
*pChunkBase2 = KTestValue3;
test(KTestValue3 == *pChunkBase2);
+ // print it after test as this will corrupt memory buffer
+ test.Printf(_L("Display Memory Address = %08x\n"), reinterpret_cast<TUint>(pChunkBase));
chunk2.Close();
}