[System][ios] Disable non-working Ping code (and non-existing DllImport)
commit1b6f93898e3eaaef5b4e24c63789a595d45fa8c2
authorSebastien Pouliot <sebastien@xamarin.com>
Thu, 26 Nov 2015 19:55:00 +0000 (26 14:55 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Thu, 26 Nov 2015 19:55:00 +0000 (26 14:55 -0500)
tree664944b6c5916574bd07c799392ef1f2d0f7e43d
parentdea711605ebd7093eb509d76114de5b018da0239
[System][ios] Disable non-working Ping code (and non-existing DllImport)

* capget is not part of libc (libSystem.dylib) on iOS (or OSX); and
* There's no working Process class to invoke `ping` by itself leading to

[FAIL] DllImportTest.LackOfCapget : System.InvalidOperationException : Process has not been started.
    at System.Diagnostics.Process.get_HasExited () [0x00039] in /Users/poupou/git/xamarin/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Diagnostics/Process.cs:184

It's technically possible to implement ping on iOS [1] so the code is
not totally removed from the build (API remains identical to existing).

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=964
mcs/class/System/System.Net.NetworkInformation/Ping.cs