diff options
author | Brian Osman <brianosman@google.com> | 2017-02-22 15:37:45 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-22 21:31:29 +0000 |
commit | 40540a713588c1bce53f4727b50e9aced1fc811d (patch) | |
tree | edcf432d552066f93a9eb398fe7b199622fea08a /tests/RefCntTest.cpp | |
parent | bf52e3df2987219783372d181ce1b5a7f32c77f8 (diff) |
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>
Diffstat (limited to 'tests/RefCntTest.cpp')
-rw-r--r-- | tests/RefCntTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp index d5be62170b..4bad342cee 100644 --- a/tests/RefCntTest.cpp +++ b/tests/RefCntTest.cpp @@ -25,8 +25,8 @@ static void test_refCnt(skiatest::Reporter* reporter) { 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 @@ static void test_weakRefCnt(skiatest::Reporter* reporter) { 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(); |