Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge bdb91f9272 [tests] Update linkall's CommonLinkAllTest.TypeConverter_Custom to take into account that .NET will generate assembly attributes by default.
Fixes this test failure:

    LinkAll.CommonLinkAllTest
        [FAIL] TypeConverter_Custom :   ConverterTypeName
            String lengths are both 88. Strings differ at index 43.
            Expected: "...nk all, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
            But was:  "...nk all, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
            ------------------------------^
                at LinkAll.CommonLinkAllTest.TypeConverter_Custom() in /Users/rolf/work/maccore/whatever/xamarin-macios/tests/linker/CommonLinkAllTest.cs:line 88
2020-09-01 13:29:05 +02:00
Rolf Bjarne Kvinge 1c57da6d4c [tests] Update linkall's CommonLinkAllTest.TypeConverter_BuiltIn to take into account that BooleanConverter is in a different assembly in .NET.
Fixes this test failure:

    LinkAll.CommonLinkAllTest
        [FAIL] TypeConverter_BuiltIn :   ConverterTypeName
            Expected string length 113 but was 142. Strings differ at index 46.
            Expected: "...Model.BooleanConverter, System, Version=2.0.5.0, Culture=n..."
            But was:  "...Model.BooleanConverter, System.ComponentModel.TypeConverte..."
            --------------------------------------------^
                at LinkAll.CommonLinkAllTest.TypeConverter_BuiltIn() in /Users/rolf/work/maccore/whatever/xamarin-macios/tests/linker/CommonLinkAllTest.cs:line 79
2020-09-01 13:29:05 +02:00
Sebastien Pouliot 9ebebf9f42
[linker] Teach linker to accept old (before optimization) bindings (#5823)
Existing binding binaries won't have the `[Preserve]` attribute on
the `Handler` field and, with the new optimization, would not work
properly.

This tweak make sure that older, already linker-safe, bindings will
remain this way (safe) in this (and future) versions of both iOS and
macOS SDK.
2019-04-01 09:35:14 -05:00
Sebastien Pouliot 5ad55d603e
[tests][linkall] Add a check that the Makefile produced version number is 'legit'. Fixes #4859 (#5005)
History: a marge conflict caused a version string to become "12.3." and
this was found in the API diff much later.

reference: https://github.com/xamarin/xamarin-macios/issues/4859
2018-10-18 11:16:24 -04:00
Sebastien Pouliot 6751f27841
[tests][mmp] Move TypeDescriptor (regression) tests to unit tests (#4994)
Also move some tests to share more (now and in future commits)
with iOS linker-related tests.

Part of https://github.com/xamarin/xamarin-macios/issues/4975
2018-10-17 08:25:37 -04:00