Skip to content

Commit e9bba1b

Browse files
grendellojonpryor
authored andcommitted
[tests] Disable MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd test (#4869)
Android 11/API-30 made the [**memfd_create**(2)][0] Linux-specific API fail whenever the `MFD_CLOEXEC | MFD_ALLOW_SEALING` combination of flags is passed to it, resulting in "BCL" unit test failures: Xamarin.Android.Bcl_Tests, MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd / Release System.ArgumentOutOfRangeException : Current platform doesn't support this value. Parameter name: value Actual value was MFD_CLOEXEC, MFD_ALLOW_SEALING. Disable the test altogether, since this API isn't used by `Xamarin.Android` and any applications using it will/should check the `errno` variable for the `ENOSYS` value to see if the API is supported or not. This will unblock us, allowing update of our Android emulator system image to API 30. [0]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
1 parent 88b8363 commit e9bba1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/BCL-Tests/Xamarin.Android.Bcl-Tests/nunit-excluded-tests.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# accept4(), which was added to API-21.
1313
MonoTests.Mono.Unix.Native.SocketTest.Accept4
1414

15+
# Android 11 (API 30) broke the API for apps targetting API 30
16+
MonoTests.Mono.Unix.Native.MemfdTest.TestMemfd
17+
1518
# No idea why these no longer throw:
1619
MonoTests.Mono.Unix.Native.SocketTest.BindConnect
1720
MonoTests.Mono.Unix.Native.SocketTest.SendMsgRecvMsgAddress

0 commit comments

Comments
 (0)