Previously, the test expected a precise match between the produced and
expected error messages, but such a check fails when the test fails for
more than the expected reason, like when WiX is not available on
Windows.  This patch changes the precise equality check with a substring
check to work around the problem.

Validated this patch on a Windows box that doesn't have WiX available.

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

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

Commit messages:
 - Relax error checking to permit unrelated errors

Changes: https://git.openjdk.org/jdk/pull/31282/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31282&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8384087
  Stats: 11 lines in 1 file changed: 8 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/31282.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31282/head:pull/31282

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

Reply via email to