aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/OverAlignedTest.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-09-27 11:26:50 -0400
committerGravatar Mike Klein <mtklein@chromium.org>2016-09-27 16:12:13 +0000
commit615daf0e043dd25b05be643ffdafb34194099dc5 (patch)
tree304ca5fcbe2533b7dcdceb6a3d68eb762b4045ce /tests/OverAlignedTest.cpp
parent5b20c463a3e0cd0e101acfb77608cab8532717f2 (diff)
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>
Diffstat (limited to 'tests/OverAlignedTest.cpp')
-rw-r--r--tests/OverAlignedTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/OverAlignedTest.cpp b/tests/OverAlignedTest.cpp
index aea74c7daa..fcc3e16ef5 100644
--- a/tests/OverAlignedTest.cpp
+++ b/tests/OverAlignedTest.cpp
@@ -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);
}
}