[test/ffi] Fix tests on Fuchsia
TEST=ffi/external_typed_data_finalizer_test
and others
Change-Id: Ic82e051ad5f551ceeecc0ff41efaa2bb9ee4914a
Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-arm64-try,vm-fuchsia-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332429
Reviewed-by: Tess Strickland <sstrickl@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
diff --git a/tests/ffi/dylib_utils.dart b/tests/ffi/dylib_utils.dart
index 080e3dc..6730a8b 100644
--- a/tests/ffi/dylib_utils.dart
+++ b/tests/ffi/dylib_utils.dart
@@ -47,7 +47,7 @@
/// Returns dylib
Object dlopenGlobalPlatformSpecific(String name, {String? path}) {
- if (Platform.isLinux || Platform.isAndroid) {
+ if (Platform.isLinux || Platform.isAndroid || Platform.isFuchsia) {
// TODO(https://dartbug.com/50105): enable dlopen global via package:ffi.
return using((arena) {
final dylibHandle = dlopen(