aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLErrorTest.cpp
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2016-11-11 15:16:46 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-11 21:15:29 +0000
commit7ef4b74e57a143e4e586e577e9b7c11c3aab472d (patch)
tree5ca0e9f4e9fc44806f0ef45eb70c0ff350cf13a0 /tests/SkSLErrorTest.cpp
parentdca4f6530013cf43a2557ccb07f5cb4fd916b8e8 (diff)
re-re-land of skslc now uses standard Skia caps
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4732 Change-Id: I144110bf66f67a28da7ad333173db43bddf9e8d0 Reviewed-on: https://skia-review.googlesource.com/4732 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'tests/SkSLErrorTest.cpp')
-rw-r--r--tests/SkSLErrorTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp
index fc20fa2e6d..e9e05c18d2 100644
--- a/tests/SkSLErrorTest.cpp
+++ b/tests/SkSLErrorTest.cpp
@@ -9,6 +9,8 @@
#include "Test.h"
+#if SKIA_SUPPORT_GPU
+
static void test_failure(skiatest::Reporter* r, const char* src, const char* error) {
SkSL::Compiler compiler;
std::stringstream out;
@@ -368,3 +370,5 @@ DEF_TEST(SkSLStaticIfError, r) {
"void foo() { false ? x : 5; }",
"error: 1: unknown identifier 'x'\n1 error\n");
}
+
+#endif