Commit e9bba1b
[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.html1 parent 88b8363 commit e9bba1b
File tree
1 file changed
+3
-0
lines changed- tests/BCL-Tests/Xamarin.Android.Bcl-Tests
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments