[vm/ffi] Fix dylib_open_test on macOS

Different versions of macOS seem to be using a different error message,
which the test didn't reflect.

Closes https://github.com/dart-lang/sdk/issues/54424

TEST=tests/ffi/dylib_open_test.dart
Cq-Include-Trybots: luci.dart.try:vm-mac-release-arm64-try,vm-mac-release-x64-try,vm-linux-release-x64-try,vm-win-release-x64-try
Change-Id: I6e7a20bce9defd1550abbd0e8eb7487b5f833257
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342901
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Simon Binder 2023-12-21 07:38:49 +00:00 committed by Commit Queue
parent 64aa1a9da3
commit a967ead7e9

View file

@ -26,6 +26,7 @@ void testDoesNotExist() {
exception.message);
} else if (Platform.isMacOS) {
Expect.contains('libdoesnotexist1234.dylib', exception.message);
Expect.contains('no such file', exception.message);
Expect.containsOneOf(
['no such file', 'image not found'], exception.message);
}
}