$OpenBSD: epatch-electron_spec_api-crash-reporter-spec_js,v 1.1 2019/08/22 19:20:04 robert Exp $

Index: electron/spec/api-crash-reporter-spec.js
--- electron/spec/api-crash-reporter-spec.js.orig
+++ electron/spec/api-crash-reporter-spec.js
@@ -16,7 +16,7 @@ describe('crashReporter module', () => {
   if (process.mas || process.env.DISABLE_CRASH_REPORTER_TESTS) return
 
   // TODO(alexeykuzmin): [Ch66] Fails. Fix it and enable back.
-  if (process.platform === 'linux') return
+  if (process.platform === 'openbsd') return
 
   let originalTempDirectory = null
   let tempDirectory = null
@@ -263,7 +263,7 @@ describe('crashReporter module', () => {
       assert.throws(() => require('electron').crashReporter.getUploadToServer())
     })
     it('returns true when uploadToServer is set to true', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
@@ -277,7 +277,7 @@ describe('crashReporter module', () => {
       assert.strictEqual(crashReporter.getUploadToServer(), true)
     })
     it('returns false when uploadToServer is set to false', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
@@ -298,7 +298,7 @@ describe('crashReporter module', () => {
       assert.throws(() => require('electron').crashReporter.setUploadToServer('arg'))
     })
     it('sets uploadToServer false when called with false', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
@@ -313,7 +313,7 @@ describe('crashReporter module', () => {
       assert.strictEqual(crashReporter.getUploadToServer(), false)
     })
     it('sets uploadToServer true when called with true', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
@@ -340,7 +340,7 @@ describe('crashReporter module', () => {
       assert(typeof parameters === 'object')
     })
     it('adds a parameter to current parameters', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
@@ -355,7 +355,7 @@ describe('crashReporter module', () => {
       assert('hello' in crashReporter.getParameters())
     })
     it('removes a parameter from current parameters', function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'openbsd') {
         // FIXME(alexeykuzmin): Skip the test.
         // this.skip()
         return
