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

7 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge cd0cca50c8
[tests] Remove the mono-native CheckSymbols test. (#9138)
It's running into different behavior between OS versions, and it's getting
time-consuming and annoying to keep up with the changes.

So instead just remove the test, because as far as I can see it's not testing
something important anyway (we don't care exactly which library provides the
'mono_native_initialize' function, the important part is that it's callable,
which we already test elsewhere).
2020-07-21 14:49:05 +02:00
Sebastien Pouliot e5e93f6c53
Revert "[tests] Adjust expected result of looking for 'mono_native_initialize'. Fixes xamarin/maccore#1809. (#6806)" (#8182)
This reverts commit e4a926e8f2.
2020-03-24 17:36:29 -04:00
Rolf Bjarne Kvinge e4a926e8f2
[tests] Adjust expected result of looking for 'mono_native_initialize'. Fixes xamarin/maccore#1809. (#6806)
Fixes https://github.com/xamarin/maccore/issues/1809.
2019-08-21 13:30:33 +02:00
Rolf Bjarne Kvinge 9713bea70e
[tests][mono-native] Adjust logic which is causing tests to fail on tvOS. (#5877)
Fixes this when running on tvOS using dylibs:

> [FAIL] Introspection.CheckSymbols : dlsym() not found mono_native_initialize()

Now:

* If on iOS, we'll always have the `mono_native_initialize` symbol, because the symbol is used in P/Invoke in a user assembly (the test assembly itself), and mtouch will make the AOT-compiled code use dlsym for P/Invokes in user assemblies (and when using dlsym we can't (native) strip away the symbol).
* If on watchOS or tvOS, we'll have the symbol when we're loading `mono_native_initialize` from a dylib. If loading `mono_native_initialize` from a static library, we can (native) strip away the symbol because mtouch will make the AOT-compiled P/Invoke use a static reference to the native symbol, and thus the `mono_native_initialize` symbol will not be present in the executable.
2019-04-11 19:41:25 +02:00
Alexander Köplinger fa3878391f Fix mono-native Introspection test on tvos/watchos device
We emit a native reference for P/Invokes in all assemblies thus dlsym won't find any symbols.

Fixes https://github.com/xamarin/xamarin-macios/issues/5613
2019-02-19 16:51:16 +01:00
Rolf Bjarne Kvinge 6b24fa2018 Remove debug spew. 2019-02-11 13:49:38 +01:00
Martin Baulig 4835321be3 [tests]: Add new 'mono-native' test suite. 2018-11-14 13:30:25 -05:00