OverAlignedTest: use sk_ malloc and free.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2712

Change-Id: I73b2b45ba6a1303b957aa03953eef305f8be9144
Reviewed-on: https://skia-review.googlesource.com/2712
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
This commit is contained in:
Mike Klein 2016-09-27 11:26:50 -04:00
parent 5b20c463a3
commit 615daf0e04

View File

@ -15,8 +15,8 @@ DEF_TEST(OverAligned, r) {
SkRandom rand;
// Let's test that assertion. We think it really should be providing 8-byte alignment.
for (int i = 0; i < 1000; i++) {
void* p = malloc(rand.nextRangeU(0,100));
void* p = sk_malloc_throw(rand.nextRangeU(0,100));
REPORTER_ASSERT(r, SkIsAlign8((uintptr_t)p));
free(p);
sk_free(p);
}
}