From 5afebc1588fbbee1fab52278c0cc394bd79ddd5a Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Tue, 29 Nov 2016 17:33:42 -0800 Subject: [PATCH] *DO NOT* rely on the value of uninitialized memory. --- tests/unittests/CoreGraphics/CGContextTests.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/unittests/CoreGraphics/CGContextTests.mm b/tests/unittests/CoreGraphics/CGContextTests.mm index 1b58b3b347..db3c20b9a4 100644 --- a/tests/unittests/CoreGraphics/CGContextTests.mm +++ b/tests/unittests/CoreGraphics/CGContextTests.mm @@ -443,7 +443,6 @@ virtual void SetUp() { // Check the canvas context pixel before drawing BYTE* dataPtr = static_cast(CGBitmapContextGetData(context.get())); ASSERT_NE(dataPtr, nullptr); - EXPECT_EQ(dataPtr[0], 0xcd); // Draw the image into the canvas context CGContextDrawImage(context.get(), bounds, cgImage.get()); @@ -483,7 +482,6 @@ virtual void SetUp() { // Check the canvas context pixel before drawing BYTE* dataPtr = static_cast(CGBitmapContextGetData(context.get())); ASSERT_NE(dataPtr, nullptr); - EXPECT_EQ(dataPtr[0], 0xcd); // Draw the image into the canvas context CGContextDrawImage(context.get(), bounds, image.get());