Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test failure, localizedName is nil in testSetMenu at -[FlutterMenuPlugin menuItemFromFlutterRepresentation:] > -[__NSCFConstantString stringByReplacingOccurrencesOfString:withString:options:range:] #104748

Closed
flutter/engine
#37058
@cyanglaz

Description

@cyanglaz

See: flutter/engine#33603 (comment)

When running tests in parallel, the value is appName is null here: https://github.com/flutter/engine/blob/main/shell/platform/darwin/macos/framework/Source/FlutterMenuPlugin.mm#L256

This caused crashes during the test.
[NSRunningApplication currentApplication].localizedName is supposed to pick up the name of the test executable: flutter_desktop_darwin_unittests

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: disabled testTracks the restoration of a disabled testc: flakeTests that sometimes, but not always, incorrectly passengineflutter/engine repository. See also e: labels.platform-macBuilding on or for macOS specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions