Skip to content

GeneratorTests.BGenTests.StackOverflow20696157 fails #11947

@rolfbjarne

Description

@rolfbjarne

The GeneratorTests.BGenTests.StackOverflow20696157 fails in main:

GeneratorTests.BGenTests.StackOverflow20696157:
build
Expected: 0
But was: 1
=> GeneratorTests.BGenTests.StackOverflow20696157
GeneratorTests.BGenTests.StackOverflow20696157
	sof20696157.cs
/Library/Frameworks/Mono.framework/Versions/Current/bin/csc -debug -unsafe -target:library -nowarn:436 -out:/Users/builder/azdo/_work/1/s/xamarin-macios/tests/generator/bin/Debug/tmp-test-dir/Xamarin.Tests.BGenTool.EnsureTempDir122/temp.dll -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/bgen/Xamarin.iOS.BindingAttributes.dll -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Drawing.Common.dll -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -unsafe -r:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -define:IOS -define:XAMCORE_2_0 -nostdlib -noconfig /Users/builder/azdo/_work/1/s/xamarin-macios/tests/generator/bin/Debug/tmp-test-dir/Xamarin.Tests.BGenTool.EnsureTempDir122/api0.cs -lib:/Users/builder/azdo/_work/1/s/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS
error BI1012: bgen: No Export or Bind attribute defined on Test.M296.ActionFinished
  at MemberInformation..ctor (Generator generator, IMemberGatherer gather, System.Reflection.MethodInfo mi, System.Type type, System.Type category_extension_type, System.Boolean is_interface_impl, System.Boolean is_extension_method, System.Boolean is_appearance, System.Boolean is_model, System.String selector, System.Boolean isBaseWrapperProtocolMethod) [0x0029c] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/generator.cs:598 
  at Generator.Generate (System.Type type) [0x01269] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/generator.cs:6767 
  at Generator.Go () [0x010e1] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/generator.cs:2506 
  at BindingTouch.Main3 (System.String[] args) [0x01216] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/btouch.cs:542 
  at BindingTouch.Main2 (System.String[] args) [0x00007] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/btouch.cs:196 
  at BindingTouch.Main (System.String[] args) [0x00002] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/btouch.cs:88 

Looks like this started either with 447c59d or 7dc918c (the former commit failed to on CI so no test results, the test fails in the latter commit).

CC @spouliot since he authored both commits.

Metadata

Metadata

Assignees

Labels

bugIf an issue is a bug or a pull request a bug fixtestsAnything related to tests

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions