Rodrigo Kumpera [Mon, 20 Jul 2015 22:42:10 +0000 (18:42 -0400)]
[lock-tracer] Small improvements to the decoder.
Rodrigo Kumpera [Mon, 20 Jul 2015 22:39:00 +0000 (18:39 -0400)]
[mini] Fix locking order violation in mono_get_seq_points.
mono_get_seq_points takes the domain lock then calls mini_get_shared_method.
mini_get_shared_method then calls into general metadata code that eventually take
the loader lock.
The loader lock has precedence over the domain lock.
Rodrigo Kumpera [Mon, 20 Jul 2015 22:37:06 +0000 (18:37 -0400)]
[build] Rename RUNTIME variable to avoid clash with make.config's version
Starting with
62c86e2243ef677ce060515dc584599fd559a3f4 mono/mini/Makefile now includes mcs/build/config.make.
Both files define RUNTIME, but with different values. The mini one requires the usage of MONO_PATH while the one in
mcs don't.
To fix that we rename the mini var to MINI_RUNTIME.
Rodrigo Kumpera [Mon, 20 Jul 2015 21:16:14 +0000 (17:16 -0400)]
[runtime] Fix locking in mono_image_file_for_image.
Zoltan Varga [Mon, 20 Jul 2015 22:48:55 +0000 (18:48 -0400)]
Fix the build.
Zoltan Varga [Mon, 20 Jul 2015 22:25:26 +0000 (18:25 -0400)]
[jit] Remove the usage of MonoGenericSharingContext from the back-ends, its no longer needed.
Zoltan Varga [Mon, 20 Jul 2015 21:55:28 +0000 (17:55 -0400)]
[jit] Remove mini_replace_type (), use mini_get_underlying_type () instead.
Zoltan Varga [Mon, 20 Jul 2015 21:50:00 +0000 (17:50 -0400)]
[jit] Remove the MonoGenericContext/MonoCompile arguments from the various mini_type_is/mini_is_gsharedvt etc. functions, the types are now self-describing, i.e. its possible to determine whenever they are gshared, gsharedvt, etc. without consulting a MonoGenericContext. Remove mini_type_get_underlying_type (), use mini_get_underlying_type () instead.
Zoltan Varga [Mon, 20 Jul 2015 19:33:25 +0000 (15:33 -0400)]
[jit] Remove class init trampolines, use the same code for generic and non generic class inits, implement the slowpath using a JIT icall.
Ludovic Henry [Mon, 20 Jul 2015 15:35:52 +0000 (12:35 -0300)]
[threadpool-ms-io] Factor update removing
Ludovic Henry [Fri, 17 Jul 2015 23:15:54 +0000 (20:15 -0300)]
[threadpool-ms-io] Remove socket synchronously from backend when closing socket
To achieve this, we need to wait for the update to be applied to the backend.
This is mainly for the epoll backend, as we do not need to remove the fd from the backend when using kqueue.
Zoltan Varga [Mon, 20 Jul 2015 19:14:43 +0000 (15:14 -0400)]
[gshared] Fix constrained partial calls to Object:GetType ().
Rodrigo Kumpera [Mon, 20 Jul 2015 18:22:57 +0000 (14:22 -0400)]
[lock-decoder] Update it to include the threads lock.
Rodrigo Kumpera [Mon, 20 Jul 2015 17:20:56 +0000 (13:20 -0400)]
[runtime] Safe publish MonoImage::name_cache and exploit that around the runtime. Fix ImageLock nested use.
Marek Safar [Mon, 20 Jul 2015 17:33:02 +0000 (19:33 +0200)]
[mcs] Add missing interpolated string segmnent clone. Fixes #32135
Marek Safar [Mon, 20 Jul 2015 16:41:06 +0000 (18:41 +0200)]
[mcs] Parentheses expression can act as conditional access receiver. Fixes #32130
Marek Safar [Mon, 20 Jul 2015 13:26:07 +0000 (15:26 +0200)]
[build] Clean up cross referenced files
Marek Safar [Mon, 20 Jul 2015 12:07:20 +0000 (14:07 +0200)]
[mcs] Resolve nullable expression before unwrapping. Fixes #32054
Alexander Köplinger [Mon, 20 Jul 2015 11:21:00 +0000 (13:21 +0200)]
[System.ServiceModel.Web] Fix tarball generated by "make dist"
System.Runtime.Serialization.Json/JavaScriptReader.cs is needed by the System.Json assembly, but in
d44898a2308b06a1b51b646e519da1ac3daaf6b4 it was removed from net_2_0_System.ServiceModel.Web.dll.sources
which means it wasn't included in the tarball anymore and building it failed.
Fixing the tarball by including the file in EXTRA_DISTFILES.
Marek Safar [Mon, 20 Jul 2015 08:27:49 +0000 (10:27 +0200)]
Merge pull request #1931 from kasthack/system.web-fixes
[System.web] Reference source imports + HttpApplication fix
Zoltan Varga [Mon, 20 Jul 2015 03:26:16 +0000 (23:26 -0400)]
[jit] Remove the support for MONO_ARCH_NOTIFY_PENDING_EXC, it only works on amd64, and its not worth the complexity.
Zoltan Varga [Mon, 20 Jul 2015 02:24:13 +0000 (22:24 -0400)]
[jit] Use mini_type_get_underlying_type () instead of mini_get_basic_type_from_generic (), make the latter static.
Radek Doulik [Fri, 5 Jun 2015 11:42:03 +0000 (13:42 +0200)]
[linker] Instead of preserving every method with a [Register] attribute...
[merged from monodroid by rodo]
part of
commit
0b9c100b60fc2502a0d6347d50cac444bb82b285
Author: Jonathan Pobst <monkey@jpobst.com>
Date: Wed Sep 28 15:50:39 2011 -0500
Instead of preserving every method with a [Register] attribute on it in Mono.Android.dll, only save the things that the user actually uses. Reduces HelloWorld release apk by ~1.3MB.
Radek Doulik [Thu, 4 Jun 2015 20:07:33 +0000 (22:07 +0200)]
[linker] return count of marked methods
[merged from monodroid by rodo]
- part of
commit
216f75038afee2105182fc6af329f1fc83c4298f
Author: Radek Doulik <rodo@xamarin.com>
Date: Sun Nov 23 11:40:42 2014 +0100
[linker] mark methods (from Register attr) in base type when needed
- fixes #10268
- methods from these Register attributes were not marked:
https://github.com/xamarin/monodroid/blob/master/src/Mono.Android/src/Android.Widget/AdapterView.cs#L132-135
because the app used class derived from BaseAdapter class and the methods
existed only in the base class and were not marked
Radek Doulik [Thu, 4 Jun 2015 11:06:17 +0000 (13:06 +0200)]
[linker] fix Linking for assemblies with type forwarders (like PCL)
[merged from monodroid by rodo]
commit
840487dd904a5552f77dcc7388b27c37ca09169f
Author: Radek Doulik <rodo@xamarin.com>
Date: Thu Oct 16 20:03:58 2014 +0200
- sometime the assemblies with action set to Copy still might
contain type references to forwarders and thus point to
Delete assemblies, which are removed during linking, resulting
in unresolvable type references
- fixes https://bugzilla.xamarin.com/show_bug.cgi?id=23617
XA forms template now builds and works OK
XA app template builds and works OK
Radek Doulik [Wed, 3 Jun 2015 15:21:28 +0000 (17:21 +0200)]
[linker] process only .xml files, catch xml exceptions
[merged from monodroid by rodo]
commit
f51f044e30b822f191777a395563ef9d46f8b69d
Author: Radek Doulik <rodo@xamarin.com>
Date: Wed Mar 4 18:28:59 2015 +0100
- fixes #27620
- in this case we were trying to process Application.java
as linker an assembly XML linker description, which led
to uncaught XmlException
Radek Doulik [Wed, 3 Jun 2015 15:19:21 +0000 (17:19 +0200)]
[linker] In ResolveFromXmlStep, bail if no <linker> element is found.
[merged from monodroid by rodo]
commit
2edecdc39ca55c65de4f57557e5e31b5d432eaa4
Author: Alex Rønne Petersen <alexrp@xamarin.com>
Date: Mon Jul 1 15:35:59 2013 +0200
The BlacklistStep pass will feed the ResolveFromXmlStep pass XML files
that may not necessarily *be* linker descriptor files. This can happen
if an embedded file happens to be named "Foo.Bar.xml" and an assembly
called Foo.Bar is referenced in a project. The chances of this happening
are probably very low, but better safe than sorry.
Radek Doulik [Thu, 28 May 2015 19:35:34 +0000 (21:35 +0200)]
[linker] Fortify the BlacklistStep.
[merged from monodroid by rodo]
commit
3001f693c52be0da673446179daf498265024867
Author: Alex Rønne Petersen <alexrp@xamarin.com>
Date: Tue Jul 30 20:06:21 2013 +0200
1. Catch XmlExceptions in case of broken XML files.
2. Only process files that actually end in ".xml".
Radek Doulik [Thu, 28 May 2015 19:30:41 +0000 (21:30 +0200)]
[linker] Support linker descriptor files embedded in the assemblies being linked.
[merged from monodroid by rodo]
commit
3e19b22eb24ff9faeebe1ace7461d8f91f807041
Author: Alex Rønne Petersen <alexrp@xamarin.com>
Date: Mon Jul 1 15:34:26 2013 +0200
This is in addition to those files that are already embedded in the linker assembly
itself (such as mscorlib.xml). People can use this feature to tell the linker that
certain methods/fields/types must be kept if a particular assembly is being referenced
by embedding a descriptor file in it.
kasthack [Sat, 18 Jul 2015 15:30:15 +0000 (18:30 +0300)]
[System.Web] Imported some interfaces, attributes and enums from reference source:
ISubscriptionToken, IModelNameProvider, BindingBehaviorAttribute, BindingBehavior, BindNeverAttribute, BindRequiredAttribute, ExtensibleModelBinderAttribute, ModelBinderProviderOptionsAttribute, CodeCharts, WebBrowsableAttribute, WebDescriptionAttribute, WebDisplayNameAttribute, AspNetWebSocketOptions
kasthack [Sat, 18 Jul 2015 14:39:05 +0000 (17:39 +0300)]
[System.Web] Made HttpApplication method parameters match reference version
Marek Safar [Sat, 18 Jul 2015 05:37:02 +0000 (07:37 +0200)]
[System.Web] Fixes make dist
Marek Safar [Fri, 17 Jul 2015 20:17:29 +0000 (22:17 +0200)]
[mcs] Update to latest mscorlib
Marek Safar [Fri, 17 Jul 2015 14:38:40 +0000 (16:38 +0200)]
[build] Update facades to mobile profiles
Marek Safar [Fri, 17 Jul 2015 12:51:22 +0000 (14:51 +0200)]
[Facades] Add partial facades with missing (unknown) types
Marek Safar [Fri, 17 Jul 2015 07:34:17 +0000 (09:34 +0200)]
[System.Numerics.Vectors] Fixes public key
Zoltan Varga [Fri, 17 Jul 2015 00:12:33 +0000 (20:12 -0400)]
Fix a warning.
Zoltan Varga [Thu, 16 Jul 2015 21:32:08 +0000 (17:32 -0400)]
[llvm] Add support for returning vtypes as a scalar, this is used on arm64.
Mark Probst [Thu, 16 Jul 2015 20:46:32 +0000 (13:46 -0700)]
[sgen] Don't crash on canaries when called from `mono_gc_scan_for_specific_ref()`.
This function is only ever called from the debugger, and we don't want
it to crash when a canary has been overwritten.
Ludovic Henry [Thu, 16 Jul 2015 19:30:41 +0000 (16:30 -0300)]
[threadpool-ms] Use define for monitor thread minimal lifetime
Ludovic Henry [Thu, 16 Jul 2015 19:24:16 +0000 (16:24 -0300)]
[threadpool-ms] Fix monitor thread starting and ending at a multiple times per second
Marek Safar [Thu, 16 Jul 2015 19:12:19 +0000 (21:12 +0200)]
[Facades] Add missing folder
Marek Safar [Thu, 16 Jul 2015 19:11:48 +0000 (21:11 +0200)]
Remove aggressive filter
Marek Safar [Thu, 16 Jul 2015 18:57:38 +0000 (20:57 +0200)]
[build] Add System.Numerics.Vectors skeleton
João Matos [Thu, 16 Jul 2015 17:53:50 +0000 (18:53 +0100)]
[runtime] Implemented MonoContext for WatchOS using ucontext.
We cannot use inline assembly for WatchOS.
Marek Habersack [Thu, 16 Jul 2015 15:52:29 +0000 (17:52 +0200)]
[tests] Fix tests on OS/X
OS/X, like Android, uses a symlink for the $TMP directory. The tests used to assume
that the link points to the /private/tmp directory (which is the case) but earlier
changes introduced here for Android employed a more generic mechanism to determine the
actual temporary directory.
This commit removes the '/private' prefix assumption from OS/X
Marek Safar [Thu, 16 Jul 2015 15:30:45 +0000 (17:30 +0200)]
[Facades] Add v3 facades
Marek Habersack [Wed, 15 Jul 2015 19:47:00 +0000 (21:47 +0200)]
[tests] 4.x profiles produce test assembly suffixed with 4_x now
Marek Habersack [Wed, 15 Jul 2015 19:36:12 +0000 (21:36 +0200)]
[tests] corlib tests are in corlib_test_net_4_x.dll now
Marek Habersack [Wed, 15 Jul 2015 18:24:03 +0000 (20:24 +0200)]
[tests] Disable until a server that works is found
This test depends on server behavior. I changed the server to xamarin.com
earlier on, but it stopped behaving as required recently. The test should
not rely on random servers, so until we have a server we can rely on I'm
disabling it.
Marek Habersack [Tue, 7 Jul 2015 20:40:29 +0000 (22:40 +0200)]
[tests] Crashes on Android 64-bit
Disable for all other architectures as well, as there's not enough
flexibility in this respect :(
Marek Habersack [Tue, 7 Jul 2015 10:02:49 +0000 (12:02 +0200)]
[tests] Disable on Android due to runtime segfault
The Dispose call in FakeSafeHandle causes the Mono runtime to segfault
when passing the call up the chain. As a consequence of disabling the
base class call, the other tests disabled by this commit fail.
Marek Habersack [Tue, 7 Jul 2015 10:01:09 +0000 (12:01 +0200)]
[tests] Runtime segfaults on Android, probably due to AppDomain.Unload
Marek Habersack [Tue, 7 Jul 2015 09:59:31 +0000 (11:59 +0200)]
[tests] Disable tests not working on mobile platforms
Marek Habersack [Tue, 7 Jul 2015 09:58:15 +0000 (11:58 +0200)]
[tests] Add Xamarin.Android assembly name to list of probes
Marek Habersack [Tue, 7 Jul 2015 09:57:26 +0000 (11:57 +0200)]
[tests] Disable on Android due to environment differences
Assemblies in Xamarin.Android cannot be accessed as FileStream/files directly
Marek Habersack [Tue, 7 Jul 2015 09:55:41 +0000 (11:55 +0200)]
[tests] Adjust the test for Android-specific behavior
Marek Habersack [Tue, 7 Jul 2015 09:54:49 +0000 (11:54 +0200)]
[tests] Disable on Android due to environment differences
Xamarin.Android doesn't ship with the Mono.Compilerservices.SymbolWriter
assembly that is required by this test.
Marek Habersack [Tue, 7 Jul 2015 09:53:36 +0000 (11:53 +0200)]
[tests] Assembly.GetEntryAssembly works differently on Android
There's no entry assembly as such, adjust the test accordingly.
Marek Habersack [Tue, 7 Jul 2015 09:32:59 +0000 (11:32 +0200)]
[tests] Disable on Android due to environment differences
It's not possible to save the assembly in the current directory on Android and AssemblyBuilder.DefineDynamicModule will not
allow a full path to the assembly to be passed to it. Trying to change the current directory before saving will not work either as
FileStream will then prepend / to the file name (perhaps it's another bug) and write access to the filesystem root is, obviously, denied
Marek Habersack [Tue, 7 Jul 2015 09:31:39 +0000 (11:31 +0200)]
[tests] Disable on Android due to environment differences
Xamarin.Android doesn't ship with the Mono.Compilerservices.SymbolWriter
assembly that is required by this test.
Marek Habersack [Tue, 7 Jul 2015 09:30:27 +0000 (11:30 +0200)]
[tests] Disable on Android
Fails with System.MethodAccessException : Method `t17:.ctor ()' is inaccessible from method `t18:.ctor ()'
Marek Habersack [Tue, 7 Jul 2015 09:28:55 +0000 (11:28 +0200)]
[tests] Disable parts relying on APIs not in Mobile Profile
Marek Habersack [Tue, 7 Jul 2015 09:25:38 +0000 (11:25 +0200)]
[tests] The test crashes the runtime
Marek Habersack [Tue, 7 Jul 2015 09:23:20 +0000 (11:23 +0200)]
[tests] Disable code to prevent Mono runtime crash
AppDomain unloading causes a segfault with the Mono runtime on Android.
Until the cause is found and fixed this code must remain disabled.
Marek Habersack [Tue, 7 Jul 2015 09:21:20 +0000 (11:21 +0200)]
[tests] Disable on Android due to environment differences
Xamarin.Android doesn't ship with the Mono.Compilerservices.SymbolWriter
assembly that is required by this test.
Marek Habersack [Tue, 7 Jul 2015 09:19:18 +0000 (11:19 +0200)]
[tests] Disable on Android due to environment differences
DefineResource doesn't allow path in its fileName parameter and the
test attempts to write to / in effect (which is the default CWD for
Android apps)
Marek Habersack [Tue, 7 Jul 2015 09:12:37 +0000 (11:12 +0200)]
[tests] Xamarin.Android works the same way as the desktop Mono
Marek Habersack [Fri, 3 Jul 2015 10:27:45 +0000 (12:27 +0200)]
[tests] Adjust test to work in unsupported scenarios
On Android (possibly on other systems too) it is possible that no gateway address is available and its lack is NOT an error
Here is a sample of /proc/net/route from Nexus 9 running Android 5.1.1 (IPInterfaceProperties parses that file on Linux)
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
wlan0
0001A8C0 00000000 0001 0 0 0
00FFFFFF 0 0 0
Gateway is set to any address and it is explicitly ignored by the route information parser
For comparison, here's route contents from an Android 4.4.4 device:
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
wlan0
00000000 0101A8C0 0003 0 0 0
00000000 0 0 0
wlan0
00000000 0101A8C0 0003 0 0 203
00000000 0 0 0
wlan0
0001A8C0 00000000 0001 0 0 0
00FFFFFF 0 0 0
wlan0
0001A8C0 00000000 0001 0 0 0
00FFFFFF 0 0 0
wlan0
0001A8C0 00000000 0001 0 0 203
00FFFFFF 0 0 0
wlan0
0101A8C0 00000000 0005 0 0 0
FFFFFFFF 0 0 0
Obviously, this test fails on the first device and succeeds on the second. For this reason the test is modified to succeed
in case of devices like the first one since it's not a real failure but a shortcoming of the .NET API
Marek Habersack [Thu, 2 Jul 2015 15:59:06 +0000 (17:59 +0200)]
[tests] Fix tests which rely on temp dir location being a real dir
Android M (that's where I ran into it) makes the path returned by
Path.GetTempPath () a symlink to the real directory used for temporary
files. When the tests change the directory the symlink is followed and
subsequent reads of the current directory name will return the real dir
name which doesn't match what was constructed using the value returned by
GetTempPath ()
Marek Habersack [Thu, 2 Jul 2015 15:15:53 +0000 (17:15 +0200)]
[tests] Fails on Android ARM64
The test works on all the other supported architectures but segfaults on
ARM64 (Nexus 9 running Lollipop 5.1.1)
Marek Habersack [Thu, 25 Jun 2015 18:40:37 +0000 (20:40 +0200)]
[test] Disable on Android for now
The test throws the following exception
MonoTests.System.Security.Cryptography.AesCfbTests.Roundtrip=System.Security.Cryptography.CryptographicException : Bad PKCS7 padding. Invalid length 236.
at Mono.Security.Cryptography.SymmetricTransform.ThrowBadPaddingException (PaddingMode padding, Int32 length, Int32 position) <0x3bf26858 + 0x000bb> in <filename unknown>:0
at Mono.Security.Cryptography.SymmetricTransform.FinalDecrypt (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) <0x3bf264f8 + 0x0022f> in <filename unknown>:0
at Mono.Security.Cryptography.SymmetricTransform.TransformFinalBlock (System.Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) <0x3bf219b0 + 0x00077> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.CfbTests.Decryptor (System.Security.Cryptography.SymmetricAlgorithm algo, System.Byte[] encdata) <0x3bf261f8 + 0x00221> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.CfbTests.CFB (System.Security.Cryptography.SymmetricAlgorithm algo, Int32 feedbackSize) <0x3bf20000 + 0x0011b> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.AesCfbTests.CFB (System.Security.Cryptography.SymmetricAlgorithm algo) <0x3ca53ef0 + 0x00043> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.CfbTests.ProcessPadding (System.Security.Cryptography.SymmetricAlgorithm algo) <0x3ca53e80 + 0x0004f> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.CfbTests.ProcessKeySizes (System.Security.Cryptography.SymmetricAlgorithm algo) <0x3bf3fc20 + 0x000b7> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.CfbTests.ProcessBlockSizes (System.Security.Cryptography.SymmetricAlgorithm algo) <0x3bf3f910 + 0x0007b> in <filename unknown>:0
at MonoTests.System.Security.Cryptography.AesCfbTests.Roundtrip () <0x3bf3cf28 + 0x00073> in <filename unknown>:0
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) <0x3bf3cc10 + 0x0008f> in <filename unknown>:0
Marek Habersack [Thu, 25 Jun 2015 18:32:10 +0000 (20:32 +0200)]
[tests] Don't use Assembly.Location on Android
Assembly.Location will contain just the assembly file name without any path, which
is not what the test(s) expect. The reason is that the assemblies on Android live
in the APK, are embedded in the native code or don't exist at all (AOT)
Marek Habersack [Thu, 25 Jun 2015 09:25:20 +0000 (11:25 +0200)]
[tests] Android behaves the same as desktop Mono
The same exceptions are thrown in Xamarin.Android, unlike in Xamarin.iOS which
behaves differently to desktop Mono
Marek Habersack [Thu, 25 Jun 2015 09:16:17 +0000 (11:16 +0200)]
[tests] Disable for Android
The test works when only its fixture is ran, fails when ran as part of the
entire BCL test suite.
Marek Habersack [Wed, 24 Jun 2015 21:49:09 +0000 (23:49 +0200)]
[tests] Disable because URL is no longer there
The test relies on presence of a specific file that is now gone. Disabled
until a stable URL is found :P
Marek Habersack [Wed, 24 Jun 2015 21:43:25 +0000 (23:43 +0200)]
[tests] Disable for Android
The test works when only its fixture is ran, fails when ran as part of the
entire BCL test suite.
Marek Habersack [Wed, 24 Jun 2015 21:37:06 +0000 (23:37 +0200)]
[tests] Disable for Android
The test works when only its fixture is ran, fails when ran as part of the
entire BCL test suite.
Marek Habersack [Wed, 24 Jun 2015 21:21:53 +0000 (23:21 +0200)]
[tests] Android doesn't have access to Assembly.Location
Attempts to access the test dll which won't work on Android since the
dll is either in the apk or bundled in the native code or not there at
all (AOT)
Marek Habersack [Wed, 24 Jun 2015 21:18:09 +0000 (23:18 +0200)]
[tests] Disable for Android
The tests work fine if only this fixture is ran, they fail when ran as part
of the entire test suite.
Marek Habersack [Wed, 24 Jun 2015 20:10:31 +0000 (22:10 +0200)]
[tests] Disable for Android
The tests work fine if only this fixture is ran, they fail when ran as part
of the entire test suite.
Marek Habersack [Wed, 24 Jun 2015 17:14:34 +0000 (19:14 +0200)]
[tests] System zlib errors out for these on Android
Marek Habersack [Wed, 24 Jun 2015 16:37:52 +0000 (18:37 +0200)]
[tests] Large locks not supported on Android
While bionic reports it supports 64-bit offsets for locks and exposes the
necessary APIs, attempt to use offsets larger than 32 bits results in
an error.
Marek Habersack [Wed, 24 Jun 2015 16:35:53 +0000 (18:35 +0200)]
[tests] The test hangs on Android
Marek Habersack [Wed, 24 Jun 2015 16:35:39 +0000 (18:35 +0200)]
[tests] The test hangs on Android
Marek Habersack [Fri, 12 Jun 2015 16:55:36 +0000 (18:55 +0200)]
[tests] Use xamarin web server
http://elmundo.es/ started to send more than one cookie while
xamarin.com sends just one.
Marek Habersack [Fri, 12 Jun 2015 15:33:24 +0000 (17:33 +0200)]
[tests] Don't assume specific charset
Don't assume a specific charset in HTTP response from a server. Google
changes response charset based on the country of the client's
IP. There's no point in checking for the specific charset, it's enough
to check whether the response header has correct format.
Marek Habersack [Fri, 12 Jun 2015 15:23:15 +0000 (17:23 +0200)]
[tests] Different CPUs have different precision
Fix the test to compare the subtraction result to value more
conservative than Double.Epsilon, to account for differences in
different CPU floating point units on Android.
Marek Habersack [Fri, 12 Jun 2015 13:55:24 +0000 (15:55 +0200)]
[tests] Use correct path in process tests
/bin/ls doesn't exist on Android, it's /system/bin/ls
Marek Habersack [Thu, 11 Jun 2015 18:15:50 +0000 (20:15 +0200)]
[test] There is no runtime directory on Android
We return an empty string which is considered to be a valid value in
Android. Adjust the test for that.
Marek Habersack [Thu, 11 Jun 2015 18:15:01 +0000 (20:15 +0200)]
[tests] Use 2.1 profile assembly names for mobile
Marek Habersack [Thu, 11 Jun 2015 18:13:21 +0000 (20:13 +0200)]
[tests] Make failures more descriptive and fix XA
The test failures didn't really indicate which of the Fail statements
caused the test failure. Also, the 10k offset turned out to be not
enough for the XA test suite (it's much bigger than that)
Marek Habersack [Thu, 11 Jun 2015 18:11:14 +0000 (20:11 +0200)]
[tests] Assembly.Location doesn't work on XA
Xamarin.Android stores assemblies inside apk (or bundled, or AOT-ed) and
so Assembly.Location will not point to a real path on the
filesystem. It merely contains assembly name.
Marek Habersack [Thu, 11 Jun 2015 18:09:45 +0000 (20:09 +0200)]
[tests] No Mono.CompilerServices.SymbolWriter in XA
Marek Habersack [Thu, 11 Jun 2015 18:08:24 +0000 (20:08 +0200)]
[tests] No declarative security in mobile profile
Marek Habersack [Thu, 11 Jun 2015 18:02:03 +0000 (20:02 +0200)]
[tests] Fix for when CWD is /
The test case doesn't account for the situation when the tests are ran
at the root of the Unix filesystem. This is, admittedly, a rare case on
Desktop but it's precisely what CWD is for Android processes. The test
would fail because it would get a path of the //Form instead of the /Form
Marek Habersack [Thu, 11 Jun 2015 18:00:43 +0000 (20:00 +0200)]
[tests] Works in stand-alone app, fails in nunit
Marek Habersack [Thu, 11 Jun 2015 17:59:45 +0000 (19:59 +0200)]
[tests] Fails on mobile with no details
Marek Habersack [Thu, 11 Jun 2015 17:58:56 +0000 (19:58 +0200)]
[tests] Doesn't work on mobile
Marek Habersack [Thu, 11 Jun 2015 17:58:07 +0000 (19:58 +0200)]
[tests] Works in stand-alone app, fails in nunit