1'use strict'; 2 3const common = require('../../common'); 4const providers = require('./providers.cjs'); 5const assert = require('node:assert'); 6const { fork } = require('node:child_process'); 7 8const option = '--no-openssl-legacy-provider'; 9if (!process.execArgv.includes(option)) { 10 const cp = fork(__filename, { execArgv: [ option ] }); 11 cp.on('exit', common.mustCall((code, signal) => { 12 assert.strictEqual(code, 0); 13 assert.strictEqual(signal, null); 14 })); 15 return; 16} 17 18providers.testProviderAbsent('legacy'); 19