• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const common = require('../../common');
4const { path: fixture } = require('../../common/fixtures');
5const providers = require('./providers.cjs');
6
7const assert = require('node:assert');
8const { fork } = require('node:child_process');
9const option = `--openssl-config=${fixture('openssl3-conf', 'legacy_provider_enabled.cnf')}`;
10
11if (!process.execArgv.includes(option)) {
12  const cp = fork(__filename, { execArgv: [option] });
13  cp.on('exit', common.mustCall((code, signal) => {
14    assert.strictEqual(code, 0);
15    assert.strictEqual(signal, null);
16  }));
17  return;
18}
19
20providers.testProviderPresent('default');
21providers.testProviderPresent('legacy');
22