aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/VarAllocTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/VarAllocTest.cpp')
-rw-r--r--tests/VarAllocTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/VarAllocTest.cpp b/tests/VarAllocTest.cpp
index 18e421480d..b1a0cb352f 100644
--- a/tests/VarAllocTest.cpp
+++ b/tests/VarAllocTest.cpp
@@ -6,8 +6,8 @@ DEF_TEST(VarAlloc, r) {
char* p = va.alloc(128, SK_MALLOC_THROW);
sk_bzero(p, 128); // Just checking this is safe.
-#ifndef SK_BUILD_FOR_ANDROID
- // This method will always return 0 on Android.
+#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__)
+ // This method will always return 0 on Android and UCLIBC platforms.
REPORTER_ASSERT(r, va.approxBytesAllocated() >= 128);
#endif
}