Граф коммитов

3563 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge a802fe297b
[tests] Set LSUIElement in the mac tests' Info.plist so that they don't show an icon in the dock. (#3047) 2017-11-27 17:02:27 +01:00
Rolf Bjarne Kvinge 80ea066577
[xharness] Don't run the mmp regression tests in parallel with other tests. (#3046)
The mmp regression tests are already executed in parallel (using `make -j8` in
the Makefile), and they're quite CPU intensitive, which means that if xharness
runs other tests in addition to the these tests, then those other tests may
fail randomly.
2017-11-27 17:00:37 +01:00
Rolf Bjarne Kvinge 6aca49c97b
[xharness] Parse 'XML log' as NUnit result file as well. (#3045)
This makes xharness show mtouch/mmp test failures inline in the html report too.
2017-11-27 17:00:13 +01:00
Rolf Bjarne Kvinge 1880cd906e
[xharness] Run tests when something changes in tests/common. (#3044) 2017-11-27 16:59:35 +01:00
Rolf Bjarne Kvinge 46313ebed0
Enforce the right macios-binaries hash. (#3048)
This will also tell you nicely if you're missing it.
2017-11-27 16:59:12 +01:00
Manuel de la Pena 37d23049d9
[Tests] Ensure that System.Security tests do work on mac on Jenkins. (#3042) 2017-11-27 12:36:43 +01:00
Alex Soto 2aa2c5988e [AppKit] Add [NullAllowed] to NSWorkspace.SharedWorkspace.OpenFile, fixes bug 60821 (#3036)
https://bugzilla.xamarin.com/show_bug.cgi?id=60821

According to header definitions, `appName` is allowed to be null.

```
- (BOOL)openFile:(NSString *)fullPath withApplication:(nullable NSString *)appName;
- (BOOL)openFile:(NSString *)fullPath withApplication:(nullable NSString *)appName andDeactivate:(BOOL)flag;
```
2017-11-24 15:37:01 -05:00
Manuel de la Pena 5a531bcf77
[Jenkins] Ensure that DTD loading without a connection does not result in errors. #582 (#3041) 2017-11-24 16:52:58 +01:00
Rolf Bjarne Kvinge f4f887fa92
Bump maccore to get mac-api-docs fix. (#3040)
commit xamarin/maccore@14c3eca3aa
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Fri Nov 24 09:53:13 2017 +0100

    Bump mac-api-docs.

    commit xamarin/mac-api-docs@057bb83848
    Author: Timothy Risi <timothy.risi@xamarin.com>
    Date:   Thu Nov 23 23:52:21 2017 -0900

        Docs should also be generated for Xamarin.Mac (#2)

        * Docs should also be generated for Xamarin.Mac

        * Remove the push target
2017-11-24 12:47:58 +01:00
Rolf Bjarne Kvinge 662dd792c4
Bump maccore to get fix for providing the right wrench link to VSTS. (#3037)
commit xamarin/maccore@bb3ebb634f
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date:   Thu Nov 23 19:06:51 2017 +0100

    [tests/external/device-builds] Use BUILD_WORK_HOST instead of BUILD_HOST so that we calculate the right wrench url.
2017-11-24 07:41:35 +01:00
Rolf Bjarne Kvinge 29277e1ad2
[xharness] Don't keep files open when not needed anymore. (#3035)
Dispose logs (so that the corresponding files are closed) when we're done with
them, and also don't open a file log by default (usually we just want a
filename to pass to somebody else), but instead open the file if needed.

This should decrease the number of open file descriptors in xharness, which
sometimes become a problem when running many tests.
2017-11-24 07:38:17 +01:00
Rolf Bjarne Kvinge af389bda1f
[tests] Improve how test failures show up in the html report for Xamarin.Mac tests. (#3033)
* [tests] Add support for passing arguments to XM unit tests from the command line.

* [xharness] Get xml results for mac unit tests and parse it to show failures inline in the html report.
2017-11-23 19:16:02 +01:00
Rolf Bjarne Kvinge 13013a8466
[tests] Fix copying test files in System.IO.Compression[.FileSystem] tests. (#3032)
The app path depends on the assembly name, which mean we must take the
assembly name into account when calculating the app path where to copy
resource files for these two tests.

Fixes the following tests:

* System.IO.Compression

    * ZipDeleteEntryCheckEntries (MonoTests.System.IO.Compression.ZipArchiveTests.ZipDeleteEntryCheckEntries)
    * ZipEnumerateEntriesCreateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipEnumerateEntriesCreateMode)
    * ZipEnumerateEntriesModifiedTime (MonoTests.System.IO.Compression.ZipArchiveTests.ZipEnumerateEntriesModifiedTime)
    * ZipEnumerateEntriesReadMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipEnumerateEntriesReadMode)
    * ZipEnumerateEntriesUpdateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipEnumerateEntriesUpdateMode)
    * ZipGetArchiveEntryStreamLengthPositionReadMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetArchiveEntryStreamLengthPositionReadMode)
    * ZipGetArchiveEntryStreamLengthPositionUpdateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetArchiveEntryStreamLengthPositionUpdateMode)
    * ZipGetEntryCreateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryCreateMode)
    * ZipGetEntryDeleteReadMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryDeleteReadMode)
    * ZipGetEntryDeleteUpdateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryDeleteUpdateMode)
    * ZipGetEntryOpen (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryOpen)
    * ZipGetEntryReadMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryReadMode)
    * ZipGetEntryUpdateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipGetEntryUpdateMode)
    * ZipOpenAndReopenEntry (MonoTests.System.IO.Compression.ZipArchiveTests.ZipOpenAndReopenEntry)
    * ZipOpenCloseAndReopenEntry (MonoTests.System.IO.Compression.ZipArchiveTests.ZipOpenCloseAndReopenEntry)
    * ZipReadNonSeekableStream (MonoTests.System.IO.Compression.ZipArchiveTests.ZipReadNonSeekableStream)
    * ZipWriteEntriesUpdateMode (MonoTests.System.IO.Compression.ZipArchiveTests.ZipWriteEntriesUpdateMode)
    * ZipWriteEntriesUpdateModeNonZeroPosition (MonoTests.System.IO.Compression.ZipArchiveTests.ZipWriteEntriesUpdateModeNonZeroPosition)
    * ZipWriteNonSeekableStream (MonoTests.System.IO.Compression.ZipArchiveTests.ZipWriteNonSeekableStream)

* System.IO.Compression.FileSystem

    * ZipCreateFromDirectory (MonoTests.System.IO.Compression.FileSystem.ZipArchiveTests.ZipCreateFromDirectory)
    * ZipCreateFromDirectoryIncludeBase (MonoTests.System.IO.Compression.FileSystem.ZipArchiveTests.ZipCreateFromDirectoryIncludeBase)
    * ZipCreateFromEntryChangeTimestamp (MonoTests.System.IO.Compression.FileSystem.ZipArchiveTests.ZipCreateFromEntryChangeTimestamp)
    * ZipExtractToDirectory (MonoTests.System.IO.Compression.FileSystem.ZipArchiveTests.ZipExtractToDirectory)
2017-11-23 17:17:13 +01:00
Sebastien Pouliot 03f9c4b9ca
[mtouch][mmp] Allow the use of major-only version numbers in arguments. Fixes #60280 (#3029)
The parsing done by `System.Version` does not accept a major-only string,
e.g. providing "11" would throw an exception.

Since people generally refer version as iOS 11 (and not iOS 11.0) this
is, at best, a nuisance. Xcode toolchain accept "11" as a valid string.

The first part of message was updated to show both the option name and
the (user provided) value.

The 2nd part remain the text of the .net exception message, i.e. what
`Version.Parse` tells you when it validates the string. Seeing the input
value should make it more obvious for other, incorrect version strings.

reference:
https://bugzilla.xamarin.com/show_bug.cgi?id=60280
2017-11-23 11:16:30 -05:00
Rolf Bjarne Kvinge 1beff97cc0
[xharness] Bump timeout for mmp tests, since they can take longer when running in parallel with other tests. (#3031) 2017-11-23 16:40:57 +01:00
Rolf Bjarne Kvinge dd4d376c48
Bump mono (#3030)
Commit list for mono/mono:

* mono/mono@2b469fb836 [bitcode] Disable test_0_float_return_spill in bitcode to get green tests.
* mono/mono@2a3c5024f2 [aot] Add generic instances referenced by MONO_PATCH_INFO_METHOD_RGCTX patches. Fixes #60771. (#6075)
* mono/mono@ef5b3b4663 Merge pull request #6047 from lambdageek/bug-60545-2017-10
* mono/mono@b070dc3279 [System] Fix DeflateStream crash with high concurrency on Read/Write/Close (#5994)
* mono/mono@b06c50f391 [ci] Fix msbuild paths in Windows packaging
* mono/mono@a228b7348f [System.Net.Http]: Fix "Content-Length: 0" logic for requests without body.
* mono/mono@856d9754fb [loader] inflate constrained result if constraining an inflated generic method
* mono/mono@efce3b256a Fix CryptoConfig.CreateFromName on XM Modern (#6029)
* mono/mono@ce9bf964bf [loader] Rework get_method_constrained (Fixes #60545)
* mono/mono@bb8ffa5d1c [tests] Mono test for contravariant constrained.callvirt

Diff: 2cc0f9029a...2b469fb836
2017-11-23 15:55:57 +01:00
Manuel de la Pena c895771685
[XHarness] Add System.Security tests from the bcl. (#3013)
* [XHarness] Add System.Security tests from the bcl.
2017-11-23 12:29:49 +01:00
Rolf Bjarne Kvinge 3a28d950ab
[xharness] Report the exit code when thinking a test crashed. (#3028)
Usually an exit code of neither 0 nor 1 means a test run crashed (in
particular if the exit code is 130+), but this may not always be true, so
report the exit code as well so that a human can evaluate properly.
2017-11-23 07:29:46 +01:00
Sebastien Pouliot 9b7c33e9ca
[photos] Fix incorrect SDPHLivePhotoFrameProcessingBlock. Fixes #58227 (#3011)
The correct signature is a `ref NSError`, the bound API was missing the
`ref` and this required adding support to the generator.

Generated code diff:
https://gist.github.com/spouliot/3cdc7f8a40fe67a962ed9fefc2411d60

Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=58227
2017-11-22 14:42:20 -05:00
Rolf Bjarne Kvinge 83586f878d
[xharness] Make sure different flavors of XM tests don't build/run from the same path. (#3027)
Change [Intermediate]OutputPath of Xamarin.Mac test projects to include the
project flavor, so that they don't build into (and run from) the same location
(which leads to random and incorrect behavior for at least one of the
flavors).

Fixes https://github.com/xamarin/maccore/issues/584
2017-11-22 16:28:32 +01:00
Chris Hamons 386fa5114d
[macos] Stop building classic and use pre-built binaries (#3020)
- Current 4.0.0.214 (15.5 P4) but will be updated to 15.5 final
2017-11-22 09:24:39 -06:00
Rolf Bjarne Kvinge 6d063afdb5
[tests] Run the tests on Wrench like we do on Jenkins. (#3026)
* [xharness] Add support for executing a command periodically.

This will be used to run 'rsync' on bots to upload the html report somewhere
while the tests are running.

* [tests] Disable all the wrench test targets, and instead run the jenkins target (only) on wrench.

* [xharness] Write xharness log to stdout as well on wrench.

Wrench has a 30-min stdout timeout: if nothing is printed in 30 minutes, then
the step fails. Printing the harness log to stdout makes us not hit this
timeout.

* [xharness] Timestamp a few more logs.

* [xharness] Disable the @MonkeyWrench calls, since we're not uploading directly to wrench anymore.
2017-11-22 16:03:36 +01:00
Rolf Bjarne Kvinge 6fcf4ab7f4
[tests] Allow xharness to open many files when running device tests. (#3024) 2017-11-21 07:22:31 +01:00
Rolf Bjarne Kvinge 363e78211a
[xharness] Graciously ask 'mlaunch --logdev' to exit before enforcing the issue. (#3023)
'mlaunch --logdev' will exit when an enter key is pressed, so emulate that
instead of immediately terminating mlaunch.
2017-11-20 18:45:30 +01:00
Rolf Bjarne Kvinge efebe2b73b
[tests] Port the makefile-based generator tests to NUnit. (#3019)
* [tests][generator] Port bindas1048error to NUnit.

* [tests][generator] Port bindas1049error to NUnit.

* [tests][generator] Port bindas1050modelerror to NUnit.

* [tests][generator] Port bindas1050protocolerror to NUnit.

* [tests][generator] Port bug42855 to NUnit.

* [tests][generator] Port bug57070 to NUnit.

* [tests][generator] Port bug52570classinternal to NUnit.

* [tests][generator] Port bug52570methodinternal to NUnit.

* [tests][generator] Port bug52570allowstaticmembers to NUnit.

* [tests][generator] Port protocol-duplicate-abstract-error to NUnit.

* [tests][generator] Port protocol-duplicate-method-diff-length to NUnit.

* [tests][generator] Port protocol-duplicate-method-diff-out to NUnit.

* [tests][generator] Port protocol-duplicate-method-diff-type to NUnit.

* [tests][generator] Port protocol-duplicate-method-diff-return to NUnit.

* [tests][generator] Port warnaserror to NUnit.

* [tests][generator] Port nowarn to NUnit.

* [tests][generator] Add support for inspecting/asserting the generated content.

* [tests][generator] Port some Xamarin.Mac tests to NUnit.

Ported:

* bmac_smoke
* bmac-with-hyphen-in-name
* property-redefination-mac
* NSApplicationPublicEnsureMethods
* protocol-duplicate-abstract

* [tests][generator] Point bgen to our local installation.

* [tests][generator] Port the bug31788 test to a unit test.

* [generator] Make the 'bgen' helper target more complete.

* [tests][generator] Port non-custom iOS tests to unit tests.

* [tests][generator] Add new test.

* [tests][generator] Port the forum54078 test to a unit test.

* [tests][generator] Port the desk63279 test to a unit test.

* [tests][generator] Port the desk79124 test to a unit test.

* [tests][generator] Port the multiple-api-definitions tests to unit tests.

* [generator] Use mono code style.

* [tests][generator] Port the bug29493 test to a unit test.

* [tests][generator] Port the classNameCollision test to a unit test.

* [tests][generator] Port the bi1036 test to a unit test.

* [tests][generator] Port the bug37527 test to a unit test.

Also fix BI1112 and BI1113 to show up as errors in the console output (since
they're exceptions they're already treated as errors and would cause bgen to
fail).

* [tests][generator] Port the bug27986 test to a unit test.

* [tests][generator] Port the bug35176 test to a unit test.

* [tests][generator] Port the bi1046 test to a unit test.

* [tests][generator] Port the virtualwrap test to a unit test.

* [tests][generator] Port the bug42742 test to a unit test.

* [tests][generator] Port the noasyncinternalwrapper test to a unit test.

* [tests][generator] Port the noasyncwarningcs0219 test to a unit test.

* [tests][generator] Port the bug53076 test to a unit test.

* [tests][generator] Port the bug53076withmodel test to a unit test.

* [tests][generator] Port the fieldenumtests test to a unit test.

* [tests][generator] Port the smartenumwithframework test to a unit test.

* [tests][generator] Port the forcedtype test to a unit test.

* [tests][generator] Port the bug46292 test to a unit test.

* [tests][generator] Build tests with MSBuild.

There's no need to use xbuild for these tests.

* [tests][generator] Remove dead code.

* [xharness] Don't run the makefile-based generator tests anymore.

Since there aren't any makefile-based generator tests anymore, they've all
been ported to NUnit tests.

* [tests][generator] Make the bug39614 test do what it was supposed to do: make sure a namespace isn't required (but recommended).
2017-11-20 14:55:16 +01:00
Chris Hamons 467ec0cd83 Bump mono (#3022) 2017-11-20 07:44:36 +01:00
Chris Hamons 83f00251d6
[macos] Fix APITest crash due to missing version check (#3021) 2017-11-17 12:35:54 -06:00
Manuel de la Pena 1a7712f595
[MTouch] If we are building a shared code extension, do not build the msym dir. #60415 (#3016)
* [MTouch] If we are building a shared code extension, do not build the msym dir.
2017-11-17 18:24:09 +01:00
Rolf Bjarne Kvinge 976eb7b51e
[xharness] Don't run BCL tests in parallel for Xamarin.Mac. (#3014) 2017-11-16 18:50:43 +01:00
Rolf Bjarne Kvinge 171cf4987c
[monotouch-test] Tweak CalendarTest yet again. (#3015)
Hopefully third time's the charm...

Don't do date math (adding hours) to a local datetime, since DST *will* muddy
the waters and prove that 1=2.

Instead convert the date we want to calculate on to UTC, which should be DST-agnostic.

I've tested this by running the test for every hour during the next 10 years,
so that should cover mostly everything (although I'm still waiting for the
Delorean I ordered to be able to test both in the future and the past).

Previous attempts:

0442cdf9c0
5caddb3571

Should fix https://github.com/xamarin/maccore/issues/573.
2017-11-16 18:48:37 +01:00
Chris Hamons d2d2fcb352
[macos] Error when linking mix-mode assemblies (#2911)
- https://bugzilla.xamarin.com/show_bug.cgi?id=58583
2017-11-16 09:18:18 -06:00
Rolf Bjarne Kvinge e8d16c925b
[mtouch/mmp/bgen] Add support for response files. (#2808)
* [mtouch/mmp/bgen] Add support for response files.

This is the first part of the fix for #56501.

https://bugzilla.xamarin.com/show_bug.cgi?id=56501

* [tests] Make sure no single argument starting with a '@' is passed to mtouch unless it's a response file.

--assembly-build-target takes arguments starting with '@', for instance:

    --assembly-build-target @all=framework

which does not work anymore, because that's interpreted as a response file
(mtouch tries to read the file '@all=framework', which obviously doesn't
exist).

The fix is simple, don't put a space between the two arguments:

    --assembly-build-target=@all=framework

* Add --root-assembly to mtouch/mmp and make the MSBuild tasks use this new option.

This makes it possible to pass root assemblies starting with `@` to mtouch/mmp
without getting mistaken for response files.

* [msbuild] Always use the command-line option that takes an equals or colon.

Always use the command-line option that takes an equals or colon instead of a
space.

Do either of these:

    --foo=something
    --foo:something

instead of this:

    --foo something

so that `something` can start with an at (`@`) sign without being mistaken for
a response file.

* [msbuild] Fix tests according to recent task changes.
2017-11-16 16:02:34 +01:00
Rolf Bjarne Kvinge 354be6c386
[src] Fix UInt64 != long typo in method signature. (#3010)
* [src] Fix UInt64 != long typo in method signature.

* [src] Add Obsolete to incorrect API.
2017-11-16 07:25:09 +01:00
Alex Soto 7064d35442
[Foundation] Expose initWithDictionary:copyItems: in NS[Mutable]Array, Fixes bug 60541 (#3008)
https://bugzilla.xamarin.com/show_bug.cgi?id=60541
2017-11-15 10:41:40 -06:00
Bernhard Urban 20182800a1
[runtime] integrate mono 2017-10 (#2905)
* Update the function name used to initialize libmono-profiler-log, its called mono_profiler_init_log () now.

* [builds] Pass --with-cross-offsets= to crosstv's configure.

* Bump mono to 2017-08.

* Bump mono to 2017-08.

* Force disable 'futimens' and 'utimensat' so that we build with Xcode 9.

This is also needed to build with Xcode 8.3 on High Sierra.

* Remove old AppleTls implementation.

* Bump mono.

* Bump mono to 2017-08.

* Bump mono to 2017-08

* Reenable link-keep-resources-2 test

- This reverts commit 76b759ef22.
- 2017-08 has linker fix

* Bump mono to 2017-10

* Revert "Bump mono to 2017-10"

This reverts commit bb7832724e.

* Bump system mono to 2017-10

* Bump embedded mono to 2017-10

* [runtime] reflect eglib move

9be68f8952

* bump mono

* [btouch] remove Security.Tls usage from test

* [mtouch tests] update the function name used to initialize libmono-profiler-log, its called mono_profiler_init_log () now.

see
ea4e4a9ef6

fixes:

```
1) Failed : Xamarin.MTouch.Profiling(tvOS)
  _mono_profiler_startup_log
  Expected: collection containing "_mono_profiler_startup_log"
  But was:  < "_mono_profiler_init_log" >
at Xamarin.MTouch.Profiling (Xamarin.Profile profile) [0x00106] in <511889694a624cc9a50e0e9b259b05c5>:0

2) Failed : Xamarin.MTouch.Profiling(watchOS)
  _mono_profiler_startup_log
  Expected: collection containing "_mono_profiler_startup_log"
  But was:  < "_xamarin_get_block_descriptor", "_mono_profiler_init_log" >
at Xamarin.MTouch.Profiling (Xamarin.Profile profile) [0x00106] in <511889694a624cc9a50e0e9b259b05c5>:0
```

* [mmptest] update log profiler options.

826558a4af
deprecated the dash prefix for the mlpd path.

`noallocs` or `nocalls` are not needed, neither of them are default anymore.

* [mmptest] fix link-keep-resources-2 test to cope with more corlib resources.

another corlib resource (mscorlib.xml) was added:

https://github.com/mono/mono/commit/11e95169e787#diff-2d1c64decd91d9a6e8842ab0f0e9438d

* Revert "[mmptest] fix link-keep-resources-2 test to cope with more corlib resources."

This reverts commit 350eb3c174.

* [XHarness] Add the Mono.Data.Tds tests.

* Address comments from rolf in the review.

* [mmp regresssion tests] bump mono linker, so mscorlib.xml gets stripped

the test was failing in that way:

> Executing link-keep-resources-2...
> [FAIL]	i18n 4/2 data files present: charinfo.nlp, collation.core.bin, collation.tailoring.bin, mscorlib.xml

also update the output, because it's actually expected at least three
elements.

fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59277

* bump mono

fixes crash in tvOS: https://github.com/mono/mono/pull/5812

* bump mono for updated BCL tests

see https://github.com/mono/mono/pull/5820

* [mono] set 2017-10 branch in .gitmodules

* [macos] Fix guiunit error on clean builds by depending on correct copy (#2912)

* [macos] Fix guiunit error on clean builds by depending on correct copy

- From a clean build making a BCL test would error due to the non-mobile guiunit not being built
- This was because the Makefile-mac.inc target was incorrect
- This was because xharness assumed that non variation based targets were always Modern
- However, BCL tests are Full, not Modern

* Code review change

* Swap to var to reduce diff

* Revert changes in the paths for GuiUnit.

* [XHarness] Add the System.IO.Compression bcl tests. (#2918)

* [XHarness] Add the System.IO.Compression bcl tests.

*  [XHarness] Add bcl tests for System.IO.Compression.FileSystem. (#2924)

* [XHarness] Add the System.IO.Compression bcl tests.

* Ensure that resources are correctly copied in the bundles.

* [XHarness] Add bcl tests for System.IO.Compression.FileSystem.

* As per review, make the Mac test app name match the tests that are ran.

* [XHarness] Add Mono.CSharp tests on ios. (#2927)

* [XHarness] Add Mono.CSharp tests on ios.

* Bump mono to bring changes in the mono.csharp tests.

* [xtro-sharpie] fix TypeDefinition access due to Cecil change

* Bump mono

* bump mono

fixes
- https://bugzilla.xamarin.com/show_bug.cgi?id=60480
- https://bugzilla.xamarin.com/show_bug.cgi?id=60482

* bump mono

more fixes around conflicting paths when tests are run in parallel.

* Bump for mono/mono@2017-10
2017-11-14 21:30:08 +01:00
Rolf Bjarne Kvinge 6dc755c342
Include the mono version in Versions.plist. (#3003) 2017-11-14 19:40:11 +01:00
Alex Soto 21a56a5f27
[generator] Improve BI1014 - include name of unsupported field and update valid types on docs, fixes bug 57094. (#3001)
* [generator] Improve BI1014 - include name of unsupported field and update valid types on docs, fixes bug 57094.

https://bugzilla.xamarin.com/show_bug.cgi?id=57094

* Implement feedback

* fix error message

* More feedback
2017-11-14 08:46:46 -06:00
Alex Soto 2b1e34caa4 Apply X.I code style. 2017-11-13 17:10:15 -06:00
yaliashkevich 8a49a9ec68 NSUrlSessionHandler: add constructor with NSUrlSessionConfiguration parameter 2017-11-13 17:10:15 -06:00
Alex Soto b197eab50e
[generator] Fix slightly incorrect error message when trying to use ref/out parameters with BindAs attributes, fixes 57804. (#2997)
https://bugzilla.xamarin.com/show_bug.cgi?id=57804
2017-11-13 14:21:18 -06:00
Alex Soto ee19c79feb
[Generator] BindAs attribute for smart enums of an array of nullable values generates code that doesn't compile, Fixes bug 57797 (#2954)
* [Generator] BindAs attribute for smart enums of an array of nullable values generates code that doesn't compile, Fixes bug 57797

https://bugzilla.xamarin.com/show_bug.cgi?id=57797

We now correctly compiles the array nullabe types

* Disable Nullable array types in BindAs until we add registrar support
2017-11-13 10:54:21 -06:00
Sebastien Pouliot 84d63144f0
[apidiff] Update API references from d15-5 (#2996)
AVCaptureDepthDataOutput[Delegate] was removed from XM after the _normal_ update
2017-11-13 08:18:33 -05:00
Bernhard Urban abbd2b7200 [runtime] disable interpreter (#2962)
it's going to be default in mono once
https://github.com/mono/mono/pull/5925 is merged
2017-11-10 15:17:03 -05:00
Timothy Risi 09b994a8fc [macOS] NSCollectionView.ValidateDrop should use 'ref', not 'out'. Fixes #60416 (#2947) 2017-11-10 09:42:15 -05:00
Chris Hamons 5993a816a8
[macos] Fix AVCaptureDepthDataOutput on HS and 10.13 typo (#2976) 2017-11-08 14:07:39 -06:00
Sebastien Pouliot 0ca0651528
[apidiff] Update API references to XI 11.4 (15.5) (#2969) 2017-11-07 11:22:04 -05:00
Rolf Bjarne Kvinge 12d7cc87dd
[xharness] Increase timeouts for a few tests, since they may run slower when run in parallel. (#2968) 2017-11-07 16:12:37 +01:00
Rolf Bjarne Kvinge 53bdb99ed7
[xharness] Fix creating new log file (it should be truncated, which FileMode.Create does). (#2966) 2017-11-07 16:12:25 +01:00
Rolf Bjarne Kvinge fa7c6fb8eb
[xharness] Try to use a fixed port for the html server (but fallback to random port if it fails). (#2967)
Just so that the URL doesn't change every time you launch the server.
2017-11-07 16:12:13 +01:00
Rolf Bjarne Kvinge 5caddb3571
[monotouch-test] Fix regression in CalendarTest to not compare UTC and local time directly. (#2964)
In 0442cdf9c0 the `now` variable was changed to
be a UTC date, but unfortunately the code that compares it to a local date
(NSDate.Now) wasn't updated.

Only year/month/day values were compared, which meant the test would fail if
run when UTC and local time didn't represent the same date (and conversely
would pass if the UTC and local date was the same date, which is why the
changed did not fail the PR test run: the PR was tested during the 19 hours of
the day when EST and UTC represent the sam date).

Fix this by converting the UTC `now` to NSDate instead of using NSDate.Now.

This has the additional benefit of also fixing a (much smaller) race
condition: if midnight occurred just between calculating `now` and NSDate.Now,
the test would also fail.
2017-11-07 16:12:00 +01:00