Actually test our ref-counting in release builds
BUG=skia:
Change-Id: I8df5c84bf961a3be68a642ba338fdc641e09df59
Reviewed-on: https://skia-review.googlesource.com/8889
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp
index d5be621..4bad342 100644
--- a/tests/RefCntTest.cpp
+++ b/tests/RefCntTest.cpp
@@ -25,8 +25,8 @@
SkThread thing1(bounce_ref, ref);
SkThread thing2(bounce_ref, ref);
- SkASSERT(thing1.start());
- SkASSERT(thing2.start());
+ SkAssertResult(thing1.start());
+ SkAssertResult(thing2.start());
thing1.join();
thing2.join();
@@ -60,10 +60,10 @@
SkThread thing3(bounce_weak_ref, ref);
SkThread thing4(bounce_weak_weak_ref, ref);
- SkASSERT(thing1.start());
- SkASSERT(thing2.start());
- SkASSERT(thing3.start());
- SkASSERT(thing4.start());
+ SkAssertResult(thing1.start());
+ SkAssertResult(thing2.start());
+ SkAssertResult(thing3.start());
+ SkAssertResult(thing4.start());
thing1.join();
thing2.join();