xref: /third_party/node/test/addons/openssl-providers/test-no-legacy-provider-option.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/addons/openssl-providers/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciconst common = require('../../common');
41cb0ef41Sopenharmony_ciconst providers = require('./providers.cjs');
51cb0ef41Sopenharmony_ciconst assert = require('node:assert');
61cb0ef41Sopenharmony_ciconst { fork } = require('node:child_process');
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciconst option = '--no-openssl-legacy-provider';
91cb0ef41Sopenharmony_ciif (!process.execArgv.includes(option)) {
101cb0ef41Sopenharmony_ci  const cp = fork(__filename, { execArgv: [ option ] });
111cb0ef41Sopenharmony_ci  cp.on('exit', common.mustCall((code, signal) => {
121cb0ef41Sopenharmony_ci    assert.strictEqual(code, 0);
131cb0ef41Sopenharmony_ci    assert.strictEqual(signal, null);
141cb0ef41Sopenharmony_ci  }));
151cb0ef41Sopenharmony_ci  return;
161cb0ef41Sopenharmony_ci}
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ciproviders.testProviderAbsent('legacy');
19

Indexes created Thu Nov 07 10:32:03 CST 2024