Commit 689d5629 authored by cwallez's avatar cwallez Committed by Commit bot

gpu_fuzzer_angle: only run on Linux

gl_context_egl isn't being compiled on Mac so we can't run the ANGLE GPU
fuzzer on that platform. Ideally we would like to gate it on use_egl but
this variable is only defined in ui/gl/BUILD.gn and not gpu/BUILD.gn.
Gating the fuzzer on is_linux will not lose coverage as the code run is
completely platform-independent.

BUG=chromium:673276
TBR=kbr@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2572473002
Cr-Commit-Position: refs/heads/master@{#438220}
parent 1d33c5b9
......@@ -405,22 +405,24 @@ fuzzer_test("gpu_fuzzer") {
libfuzzer_options = [ "max_len=16384" ]
}
fuzzer_test("gpu_angle_fuzzer") {
sources = [
"command_buffer/tests/fuzzer_main.cc",
]
if (is_linux) {
fuzzer_test("gpu_angle_fuzzer") {
sources = [
"command_buffer/tests/fuzzer_main.cc",
]
defines = [ "GPU_FUZZER_USE_ANGLE" ]
defines = [ "GPU_FUZZER_USE_ANGLE" ]
deps = [
":gpu",
"//base",
"//base/third_party/dynamic_annotations",
"//gpu/command_buffer/common:gles2_utils",
"//ui/gfx/geometry",
"//ui/gl",
"//ui/gl:test_support",
]
deps = [
":gpu",
"//base",
"//base/third_party/dynamic_annotations",
"//gpu/command_buffer/common:gles2_utils",
"//ui/gfx/geometry",
"//ui/gl",
"//ui/gl:test_support",
]
libfuzzer_options = [ "max_len=16384" ]
libfuzzer_options = [ "max_len=16384" ]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment