diff --git a/shell/platform/darwin/macos/BUILD.gn b/shell/platform/darwin/macos/BUILD.gn index 58a9e66bcb180..9800139a8a1cf 100644 --- a/shell/platform/darwin/macos/BUILD.gn +++ b/shell/platform/darwin/macos/BUILD.gn @@ -109,6 +109,8 @@ executable("flutter_desktop_darwin_unittests") { cflags_objcc = [ "-fobjc-arc" ] + ldflags = [ "-ObjC" ] + deps = [ ":flutter_desktop_darwin_fixtures", ":flutter_framework_source", diff --git a/testing/run_tests.py b/testing/run_tests.py index a11f91c47b1e8..6b2cf2f18cea3 100755 --- a/testing/run_tests.py +++ b/testing/run_tests.py @@ -148,6 +148,11 @@ def RunCCTests(build_dir, filter): if IsMac(): RunEngineExecutable(build_dir, 'flutter_channels_unittests', filter, shuffle_flags) + # These tests can only be run on Darwin on debug mode. + # See: https://github.com/flutter/flutter/issues/66664 + if IsMac() and ('debug' in build_dir): + RunEngineExecutable(build_dir, 'flutter_desktop_darwin_unittests', filter, shuffle_flags) + # https://github.com/flutter/flutter/issues/36296 if IsLinux(): RunEngineExecutable(build_dir, 'txt_unittests', filter, shuffle_flags)