Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: tests/ErrorTest.cpp

Issue 551973004: Clear away any lingering error before testing SkError. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ErrorTest.cpp
diff --git a/tests/ErrorTest.cpp b/tests/ErrorTest.cpp
index 89e920a88586d068624e7294dd4bff7e7cc87760..4802d53e146e3e1d9ebac4422ea39787ea0cd355 100644
--- a/tests/ErrorTest.cpp
+++ b/tests/ErrorTest.cpp
@@ -28,6 +28,9 @@ static void cb(SkError err, void *context) {
}
DEF_TEST(Error, reporter) {
+ // Some previous user of this thread may have left an error laying around.
+ SkClearLastError();
+
SkError err;
unsigned int test_value = 0xdeadbeef;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698