ports/devel/electron33/files/patch-electron_spec_api-utility-process-spec.ts
Hiroki Tagato a484f0f746 devel/electron33: update to 33.2.1
Changelog: https://github.com/electron/electron/releases/tag/v33.2.1

Reported by:	GitHub (watch releases)
Security:	8b6e97a9-804e-4366-9f75-d102b22a716d
2024-12-03 17:42:18 +09:00

20 lines
1.2 KiB
TypeScript

--- electron/spec/api-utility-process-spec.ts.orig 2024-11-27 04:18:00 UTC
+++ electron/spec/api-utility-process-spec.ts
@@ -453,7 +453,7 @@ describe('utilityProcess module', () => {
expect(output).to.include(result);
});
- ifit(process.platform !== 'linux')('can access exposed main process modules from the utility process', async () => {
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('can access exposed main process modules from the utility process', async () => {
const message = 'Message from utility process';
const child = utilityProcess.fork(path.join(fixturesPath, 'expose-main-process-module.js'));
await once(child, 'spawn');
@@ -490,7 +490,7 @@ describe('utilityProcess module', () => {
await closeWindow(w);
});
- ifit(process.platform === 'linux')('allows executing a setuid binary with child_process', async () => {
+ ifit(process.platform === 'linux' || process.platform === 'freebsd')('allows executing a setuid binary with child_process', async () => {
const child = utilityProcess.fork(path.join(fixturesPath, 'suid.js'));
await once(child, 'spawn');
const [data] = await once(child, 'message');