aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-24 03:29:11 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-24 03:29:11 +0000
commit9dfb7577c4cfc5bf15de9563ac25b2d0d22d9ab4 (patch)
treec1239c262679f719854d6fab19d015acb888e0a7
parentfcac6725e07a2274ebdef3b32ea7cc618a399cab (diff)
Skip test GLPrograms test when GL or Gr context can't be created.
TBR: http://codereview.appspot.com/4946041/ git-svn-id: http://skia.googlecode.com/svn/trunk@2167 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/TestClassDef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/TestClassDef.h b/tests/TestClassDef.h
index 34f899feda..ffef2a157b 100644
--- a/tests/TestClassDef.h
+++ b/tests/TestClassDef.h
@@ -37,7 +37,9 @@
protected: \
virtual void onGetName(SkString* name) { name->set(uiname); } \
virtual void onRun(Reporter* reporter) { \
- function(reporter, fContext); \
+ if (fContext) { \
+ function(reporter, fContext); \
+ } \
} \
}; \
static TestRegistry gReg(classname::Factory); \