mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:55:08 +00:00
[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:
parent
64aa1a9da3
commit
a967ead7e9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue