Clear away any lingering error before testing SkError.

Looks like something's setting an error before ErrorTest runs on our new
Venue8 bots.

BUG=skia:
R=humper@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/551973004
This commit is contained in:
mtklein 2014-09-11 14:41:56 -07:00 committed by Commit bot
parent 0b36e6b65f
commit fbe4136845

View File

@ -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;