Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-26[msvc] Update csproj files (#6100)monojenkins
2017-10-31[Mono.Posix] Fix some socket tests on monodroid (#5915)Alexander Köplinger
d9922895d42685f6c4022d710a1e7208da773f20 removed Mono.Unix.Native/SocketTest.cs from the exclude list on the monodroid profile. It turns out that some tests don't work there however, they fail with an ArgumentOutOfRangeException on some socket options.
2017-10-17[monodroid] Enable a number of tests (#5799)Marek Habersack
Just over a year ago Xamarin.Android switched to running BCL tests straight from the Mono sources but at the time we decided we didn't want to enable a number of "new" tests (in the sense - never previously ran on XA) to avoid introducing new failures in time which required focusing on more important goals. Currently, Xamarin.Android no longer uses Mono **sources** to build its tests but, rather, it uses test **assemblies** built by Mono. This commit restores the previously excluded tests in preparation for full BCL test coverage in the near future.
2017-10-17[Mono.Posix] Use TestHelper code from monodroid repo (#5793)Alexander Köplinger
We need this because XA is now starting to use the test assemblies we build in the Mono repo instead of using the .cs source directly and this would conflict.
2017-10-04[monodroid] Fix Mono.Posix tests build (#5697)Marek Habersack
TestHelper was previously excluded because the XA tests weren't built as part of Mono but rather as part of XA test suite which included its own version of the helper. Now, however (https://github.com/xamarin/xamarin-android/commit/e9daf5ea35709ce1bc6ba81c7c37d72d385bace2), XA uses BCL+friends test assemblies built by Mono itself and so we need to restore TestHelper in the build.
2017-09-26[Mono.Unix] Fix crasher in StringToHeap (#5639)Marius Ungureanu
In case StringToHeap (string, Encoding) was called with a null string, it would unconditionally reference the string when trying to query the string's length. Bug 10074 - Error while updating status of command: MonoDevelop.Ide.Commands.ViewCommands.LayoutList
2017-08-07[msvc] Update csproj filesAlexander Köplinger
2017-08-07[bcl] Specify the name of the key file on the command line instead of using ↵Zoltan Varga
the AssemblyKeyFile attribute for consistency and to make it easier to do path name manipulation on the file name. (#5316)
2017-07-03[Mono.Posix] Don't use DateTime.Now for measuring elapsed timeAlexander Köplinger
Use Stopwatch or DateTime.UtcNow instead which aren't affected by things like daylight-saving time
2017-06-02[Posix] Optimize string marshal code by using unsafe code (#4964)Marius Ungureanu
2017-05-27[Mono.Posix] Adding .Net Core 2.0 support. (#4774)Bill Holmes
2017-05-15[msvc] Update csproj files (#4846)monojenkins
2017-04-18[msvc] Update csproj files (#4711)monojenkins
2017-04-18Remove the use of ExpectedException in Mono.Posix Tests (#4698)Bill Holmes
* Remove the use of ExpectedException in Mono.Posix Tests ExpectedException is not available in later versions of NUnit. To test the NetCore 2.0 version of Mono.Posix I need a newer version of NUnit that does not contain ExpectedException. Using Assert.Throws should be equivalent. * Mono.Posix Tests move CanUseRealTimeSignals checks Moving the CanUseRealTimeSignals check outside of the Assert.Throws callback function. This is a change in test behavior requested by @akoeplinger in the PR review. * Fixing Mono.Posix.UnixSignalTest.TestSignumPropertyThrows This test throws InvalidOperationException and we need to check for that in the Assert.Throws type.
2017-03-16[Mono.Posix] Add file that was on the xamarin-android repo so it can be ↵Rodrigo Kumpera
built from mono.
2017-03-10[corlib][Mono.Posix] Remove NunitHelpers.cs referenceMarek Safar
2017-03-09[Mono.Posix] UnixSIgnal.WaitOne() doesn't block for 0 timeout (#4489)Daniel C. Weber
For timeouts of 0 milliseconds, WaitOne may produce incorrect results. In case of timeout, the result of WaitAny denotes the amount of milliseconds that have timed out. WaitOne relies on WaitAny and interprets the result falsely as the index of the completed handle. This change introduces a check on the timeout and returns `IsSet` when the handle is not allowed to block. This is in accordance to Microsofts [documentation of WaitOne](https://msdn.microsoft.com/de-de/library/cc189983(v=vs.110).aspx) which states "If millisecondsTimeout is zero, the method does not block. It tests the state of the wait handles and returns immediately.". [Here](https://github.com/StephenCleary/AsyncEx.Interop.WaitHandles/blob/master/src/Nito.AsyncEx.Interop.WaitHandles/WaitHandleInterop.cs#L51) is an example of some code relying on correct output of `WaitOne(0)` that is effectively broken by the current behaviour.
2017-02-07Make sure Stdlib.GetLastError() never clobbers Marshal.GetLastWin32Error()Niklas Therning
2017-02-01Fixes the Mono.Posix API breakage introduced in #3985Niklas Therning
Also reverts the changes done to support/map.c. This is a generated file which shouldn't be changed directly. An alternate fix for the problem in map.c on Windows was to make sure L_SET et al are defined in mph.h which was already done for Solaris.
2017-01-10[msvc] Update csproj files (#4221)monojenkins
2016-11-29[bcl] Clean up some warningsMarek Safar
2016-11-17Fix Mono.Posix tests on WindowsNiklas Therning
Cleaned up Mono_Posix_FromSeekFlags() in support/map.c. It didn't properly handle the case when L_INCR, L_SET, L_XTND aren't available, like on Windows. Added Mono_Posix_Stdlib_GetLastError() to support/errno.c and changed Stdlib.GetlastError() use it. Without this Stdlib.GetlastError() wouldn't take errno in the C runtime used by libMonoPosixHelper.dll into account. On Windows the Syscall class failed to initialize due to missing functions, e.g. Mono_Posix_Syscall_get_at_fdcwd(), in libMonoPosixHelper.dll. Those readonly static fields which were initialized at class initialization have now been converted to static readonly properties so that the Syscall class can be initialized despite those functions not being defined. Cleaned up temp file handling in StdioFileStreamTest to avoid failures due to sharing violations on Windows. Fixed a bug in the StdioFileStreamTest.Write() test method when reading back the batch of bytes written in the second part of the test. Enabled the Mono.Posix test suite to run on PR builds. This test suite should from now on be green.
2016-11-16Prevent Mono.Posix from using multiple C runtimes on WindowsNiklas Therning
Since libMonoPosixHelper.dll is linked against ucrtbase.dll the C runtime wrapper functions in it will call into ucrtbase.dll. Some pinvokes in Mono.Unix.Native.Stdlib, however, bind directly to C runtime functions in msvcrt. This is problematic if a resource (heap memory, file pointer, etc) is allocated using one C runtime and then operated upon using funcitons form the other C runtime. E.g., Stdlib.malloc() calls into a wrapper in libMonoPosixHelper so it will use the ucrtbase heap while Stdlib.free() calls directly into msvcrt's free() which will abort the process since it's called with a pointer in an unknown heap. This commit adds libMonoPosixHelper wrappers for all memory and file related functions in Stdlib to ensure that all such functions use the same C runtime. Some of the Mono.Posix tests still fail but at least the test suite doesn't crash after this change. The test failures will be addressed in a future PR.
2016-11-14[msvc] Update .csproj filesAlexander Köplinger
2016-11-02[Mono.Posix] Disable Unix-specific tests on WindowsAlexander Köplinger
They don't make sense there. Added nunit group to win32.make for excluding, similar to darwin.make
2016-10-29[bcl] Add NUnitHelper.cs with API not in nunit-liteMarcos Henrich
NUnitHelper.cs adds CollectionAssert, FileAssert, StringAssert. Also adds AssertHelper class with methods that are not part of nunitlite Assert class.
2016-10-17[build] Regenerate .csproj filesAlexander Köplinger
Note: DISABLE_CAS_USE was removed in ed989a8e9e5c170b6d19edc60bb80e8a4e6d5cc0
2016-06-01Xamarin.Android test suite updatesMarek Habersack
Xamarin.Android internal test suite takes advantage of the BCL tests in Mono, so far their inclusion was a manual process and this commit fixes it. A set of source inclusion and exclusion lists is added and a handful of code fixes to make them compile on Xamarin.Android
2016-05-27[genproj] Do not use \r on the Unix parts of the build hook, add RabbitMQ hooksMiguel de Icaza
2016-05-19[msbuild projects] Use newlines without a carriage return for Unix targets ↵Miguel de Icaza
to appease MS msbuild
2016-05-19[genproj] Use an explicit IntermediateOutputPath to prevent rebuilds on ↵Miguel de Icaza
cyclic assemblies
2016-05-18Remove dead code, update solution filesMiguel de Icaza
2016-05-18genproj: Improve handling of executables and projects with build dependenciesMiguel de Icaza
2016-05-18[genproj] Updates to project generator and csproj files.Miguel de Icaza
* Adds support for a handful of new command line arguments that we now use in the build. * Always attempts to match to a project name, to get the proper project dependency. * Update to support .exe and .dll in the generation. * Remove warnings and some dead code * Update the resulting csproj files based on running: make update-csproj make package-inputs mono genproj.exe
2016-04-04[build] Change the way how mcs references are passed to compiler to always ↵Marek Safar
use full path. One of csc prerequisites because csc uses -lib as path which is considered after RuntimeEnvironment.GetRuntimeDirectory which makes -lib useless
2016-03-01Fix marshaling of file name in Mono.Unix.UnixEndPoint.Create()David Lechner
In some cases, the null terminator in the SocketAddress may not be the last character. This changes the algorithm to ignore the null terminator and anything after it instead of assuming that the last character is the null terminator. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=35004
2016-03-01Add unit tests for Mono.Unix.UnixEndpoint and Mono.Unix.UnixListenerDavid Lechner
Tests for regression of https://bugzilla.xamarin.com/show_bug.cgi?id=35004
2016-01-29Remove ChangeLog files from the repoAlexander Köplinger
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-26[Mono.Posix] Fix the SocketTest.ControlMsg() test on OSXSteffen Kieß
Unlike Linux, OSX does not allow multiple SCM_RIGHTS control messages in sendmsg(). The SocketTest.ControlMsg() test is split into two tests, one which sends only a single control message (containing two FDs), and another one which sends two control messages (each containing one FD). The second test is not executed on OSX.
2016-01-26[Mono.Posix] Disable new ControlMsg() test that fails on OSX for nowAlexander Köplinger
Added with https://github.com/mono/mono/pull/2097. Fails on Jenkins: ``` Test Case Failures: 1) MonoTests.Mono.Unix.Native.SocketTest.ControlMsg : System.ArgumentException : Invalid argument ----> Mono.Unix.UnixIOException : Invalid argument [EINVAL]. at Mono.Unix.UnixMarshal.ThrowExceptionForLastError () [0x00000] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs:460 at MonoTests.Mono.Unix.Native.SocketTest+<ControlMsg>c__AnonStorey2.<>m__0 (Int32 so1, Int32 so2) [0x0018f] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs:778 at MonoTests.Mono.Unix.Native.SocketTest.WithSocketPair (System.Action`2 f) [0x00025] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs:68 at MonoTests.Mono.Unix.Native.SocketTest.<ControlMsg>m__9 (Int32 inner_so1, Int32 inner_so2) [0x00014] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs:739 at MonoTests.Mono.Unix.Native.SocketTest.WithSocketPair (System.Action`2 f) [0x00025] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs:68 at MonoTests.Mono.Unix.Native.SocketTest.ControlMsg () [0x00000] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs:738 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/jenkins/workspace/test-mono-mainline@2/label/osx-i386/mcs/class/corlib/System.Reflection/MonoMethod.cs:295 --UnixIOException ```
2016-01-25Merge pull request #2097 from steffen-kiess/posix-sockets-3Jonathan Pryor
[Mono.Posix] Add support for sending and receiving socket control messages
2016-01-21[Mono.Posix] Make UnixSignalTest.TestRaiseStorm() more reliableAlexander Köplinger
The test was reenabled in 3f3df2694529b6fc3b88bf9c83c76d792ff47428 and we were seeing it randomly fail on Jenkins on OSX like that: ``` [...] ***** MonoTests.Mono.Unix.UnixSignalTest.TestNoEmitAny ***** MonoTests.Mono.Unix.UnixSignalTest.TestRaise ***** MonoTests.Mono.Unix.UnixSignalTest.TestRaiseAny ***** MonoTests.Mono.Unix.UnixSignalTest.TestRaiseStorm /bin/sh: line 1: 40164 Hangup: 1 PATH="/Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/runtime/_tmpinst/bin:/opt/mono/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" MONO_REGISTRY_PATH="/Users/builder/.mono/registry" MONO_TESTS_IN_PROGRESS="yes" MONO_PATH="./../../class/lib/net_4_x::$MONO_PATH" /Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/runtime/mono-wrapper --debug ./../../class/lib/net_4_x/nunit-console.exe Mono.Posix_test_net_4_x.dll -noshadow -labels -exclude=NotOnMac,NotWorking,ValueAdd,CAS,InetAccess -labels -xml=TestResult-net_4_x.xml make[1]: *** [run-test-lib] Error 1 make[1]: Leaving directory `/Users/builder/jenkins/workspace/test-mono-mainline/label/osx-i386/mcs/class/Mono.Posix' make: *** [do-run-test] Error 1 ``` The problem is that (especially on OSX it seems) the signals raised by the threads in the test can be delivered after we closed the UnixSignal, which means the default behavior of terminating the program kicks in. The simplest fix is to just sleep for some time to make sure the signal is delivered and ignored before closing.
2016-01-19[Mono.Posix] Add support for sending and receiving socket control messagesSteffen Kieß
Add wrappers for struct cmsghdr, the macros for manipulating control messages (CMSG_*) and recvmsg() and sendmsg().
2016-01-19[Mono.Posix] Fix OSX build break by checking if accept4() is availableAlexander Köplinger
It's a Linux-specific extension and not available on OSX or Linux <2.6.28
2016-01-19Merge pull request #2006 from steffen-kiess/posix-sockets-2Jonathan Pryor
[Mono.Posix] Add wrappers for struct sockaddr_*
2016-01-18[Mono.Posix] Add wrappers for struct sockaddr_*Steffen Kieß
Add wrappers for the sockaddr_* structures and add the syscalls using these structures (bind(), accept(), ...).
2015-12-03Merge pull request #2260 from xmcclure/fix-testwaitanyRodrigo Kumpera
Cleanup and crash fix around UnixSignal.WaitAny (bug #36214)
2015-12-03Merge pull request #2279 from xmcclure/mono-posix-versionAndi McClure
Fail cleanly when MonoPosixHelper.dll version is wrong (bug #35655)
2015-12-02Cleanup in signal.c and related testsAndi McClure
Add comments, add assert for edge case around signal registration, and make consistent *always* using atomic get/set for memory shared between the signal handler and the threads.
2015-12-02Fail cleanly when MonoPosixHelper.dll version is wrong (bug #35655)Andi McClure
Add version keys to the C and C# versions of Mono.Posix and add static constructors which fail early if the version keys differ.