mirror of https://github.com/nodejs/node.git
22 lines
655 B
JavaScript
22 lines
655 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const { path: fixture } = require('../../common/fixtures');
|
|
const providers = require('./providers.cjs');
|
|
|
|
const assert = require('node:assert');
|
|
const { fork } = require('node:child_process');
|
|
const option = `--openssl-config=${fixture('openssl3-conf', 'default_only.cnf')}`;
|
|
|
|
if (!process.execArgv.includes(option)) {
|
|
const cp = fork(__filename, { execArgv: [option] });
|
|
cp.on('exit', common.mustCall((code, signal) => {
|
|
assert.strictEqual(code, 0);
|
|
assert.strictEqual(signal, null);
|
|
}));
|
|
return;
|
|
}
|
|
|
|
providers.testProviderPresent('default');
|
|
providers.testProviderAbsent('legacy');
|