The powershell binary is required to run these tests but in the GitHub
workflow that runs tests (specifically, in test.yml), we reset the PATH
environment variable on Windows, causing the GitHub workflow to fail if
you run these tests.  The tests pass locally since local test runs don't
modify PATH.

To make these tests pass in GitHub workflows, this patch updates the
tests to refer to PowerShell using the canonical path on Windows.  See
https://github.com/raneashay/openjdk-jdk/actions/runs/25680763981/job/75401590988
for a sample workflow run of the tier2 part1 tests, which include the
CngCipher and DupAlias tests.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Enable CngCipher and DupAlias tests to run powershell

Changes: https://git.openjdk.org/jdk/pull/31127/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31127&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8384371
  Stats: 14 lines in 2 files changed: 12 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/31127.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31127/head:pull/31127

PR: https://git.openjdk.org/jdk/pull/31127

Reply via email to