summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-content_test_content__test__suite.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-content_test_content__test__suite.cc')
-rw-r--r--devel/electron13/files/patch-content_test_content__test__suite.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-content_test_content__test__suite.cc b/devel/electron13/files/patch-content_test_content__test__suite.cc
new file mode 100644
index 000000000000..a2a63647579b
--- /dev/null
+++ b/devel/electron13/files/patch-content_test_content__test__suite.cc
@@ -0,0 +1,18 @@
+--- content/test/content_test_suite.cc.orig 2021-04-14 01:08:48 UTC
++++ content/test/content_test_suite.cc
+@@ -83,6 +83,7 @@ void ContentTestSuite::Initialize() {
+ // to initialize GL, so don't do it here.
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ bool is_child_process = command_line->HasSwitch(switches::kTestChildProcess);
++#if !defined(OS_BSD)
+ if (!is_child_process) {
+ gl::GLSurfaceTestSupport::InitializeNoExtensionsOneOff();
+ auto* gpu_feature_info = gpu::GetTestGpuThreadHolder()->GetGpuFeatureInfo();
+@@ -90,6 +91,7 @@ void ContentTestSuite::Initialize() {
+ gpu_feature_info->disabled_extensions);
+ gl::init::InitializeExtensionSettingsOneOffPlatform();
+ }
++#endif
+ // TestEventListeners repeater event propagation is disabled in death test
+ // child process.
+ if (command_line->HasSwitch("gtest_internal_run_death_test")) {