Chromium Code Reviews| 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; |