11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciconst common = require('../common'); 41cb0ef41Sopenharmony_cicommon.requireNoPackageJSONAbove(); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciif (!common.hasCrypto) 71cb0ef41Sopenharmony_ci common.skip('missing crypto'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciconst assert = require('node:assert'); 121cb0ef41Sopenharmony_ciconst { spawnSync } = require('node:child_process'); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciconst dep = fixtures.path('policy', 'process-binding', 'app.js'); 151cb0ef41Sopenharmony_ciconst depPolicy = fixtures.path( 161cb0ef41Sopenharmony_ci 'policy', 171cb0ef41Sopenharmony_ci 'process-binding', 181cb0ef41Sopenharmony_ci 'policy.json'); 191cb0ef41Sopenharmony_ciconst { status } = spawnSync( 201cb0ef41Sopenharmony_ci process.execPath, 211cb0ef41Sopenharmony_ci [ 221cb0ef41Sopenharmony_ci '--experimental-policy', depPolicy, dep, 231cb0ef41Sopenharmony_ci ], 241cb0ef41Sopenharmony_ci { 251cb0ef41Sopenharmony_ci stdio: 'inherit' 261cb0ef41Sopenharmony_ci }, 271cb0ef41Sopenharmony_ci); 281cb0ef41Sopenharmony_ciassert.strictEqual(status, 0); 29