29 Commits
Author SHA1 Message Date
Alexander Köplinger 8da092621f [System] Switch tests to use embedded test resources 2018-09-27 22:46:52 +02:00
Filip Navara c63e12669d Fix DeflateStream handling of zero-length reads from underlying stream. 2018-09-06 18:38:22 +02:00
Alexander Kyte ca8b8bd346 [runtime] Add Dedup Support to MkBundle (#5484)
* [runtime] Fix mkbundle compilation on OSX

* [runtime] Add aot arguments to mkbundle

* [runtime] Enable compiling aot with mkbundle

* [runtime] Add new dedup interface to mkbundle

* [runtime] Fix path resolving for mkbundle

* [runtime] Use mkbundle in BCL tests

* [runtime] Skip building System.Security, System.IdentityModel tests on testing_aot_full

* [runtime] Fix in-tree building for mkbundle

* [runtime] Move testing dll into profile

* [runtime] Add target to mkbundle all tests before CI

* [runtime] Build stripper and use with mkbundle

Preliminary linker support ran into dependency-finding bug
with the monolinker.exe binary. Fix postponed until later.

* [runtime] Skip not supported tests with mkbundle

* [runtime] Don't re-aot when running BCL tests

* [runtime] Provide config to mkbundle

* [runtime] Fix mkbundle internationalization test results, build all

* [runtime] Clean up temp mkbundle aot directory

* [runtime] Add mkbundle support for dedup

* [runtime] Fix tracking of dedup module in mkbundle

* [runtime] Document mkbundle AOT options in man pages

* [runtime] Fix CADMessage generic method argument marshalling
2017-11-15 09:56:26 -05:00
Alexander Köplinger 2439f17bef Revert "Merge pull request #5330 from alexanderkyte/dedup_mkbundle"
This reverts commit 9a287c0412, reversing
changes made to 4a79280b3b.

It breaks tons of tests.
2017-08-31 00:41:53 +02:00
Alexander Kyte 3802e3de1b [runtime] Skip not supported tests with mkbundle 2017-08-30 12:54:49 -04:00
Alexander Köplinger 3bc76b068d [System] Disable a test that reads a file on mobile
We don't have a way to pass the file to our mobile test runners at the moment.
2016-10-31 12:41:13 +01:00
Joao Matos 0b94fdf1d3 [System.IO.Compression] Fixed DeflateStream input stream EOF condition.
What was happening is that we set the stream EOF flag to true when we
could not read any more input data, and that made us early out before
fully finishing the processing of the compressed data.

Now the only EOF flag is set to true is if zlib's inflate() has actually
finished processing the data.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44994#c2.
2016-10-27 22:01:10 +01:00
Joao Matos 31f8da0b50 [System.IO.Compression] Fixed DeflateStream inflate() decompression loop.
This reworks the fix from https://github.com/mono/mono/commit/7c4d41a518aaf0370b882f9430752ebcd5544c10.

That fix introduced a regression when handling some inputs, which lead us to ignore
some left-over data from zlib's inflate output buffer.

Now we only break from the loop if inflate() returns Z_BUF_ERROR.

This makes sure all data is fully processed before returning to managed code.

Fixes one of the bugs in https://bugzilla.xamarin.com/show_bug.cgi?id=44994#c2.
2016-10-27 20:44:38 +01:00
Alexander Köplinger c4a5b6b5c3 [mcs] Remove NET_4_5 ifdef from the source files
It is always set in all profiles that we support so we can remove it.
2016-08-23 15:15:51 +02:00
João Matos 7c4d41a518 [System.IO.Compression.DeflateStream] Fixed end condition in decompression loop.
Keep track of total bytes read from input stream and break from the loop if it matches the number of bytes inflated by zlib.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=34916.
2016-02-23 16:09:36 +00:00
Marek Habersack 95147791a5 [tests] Enable tests for xambug #28777 on Android
The issue was fixed in XA, we can enable the tests now
2015-09-28 16:37:09 +02:00
Marek Habersack 0d8a22b3a0 [tests] System zlib errors out for these on Android 2015-07-15 20:45:24 +02:00
Gabriel Garcia 2dcdfe76d0 [System] Fix DeflateStream throw on empty flush, double flush. Fixes #28777 2015-04-07 06:22:32 -04:00
Gabriel Garcia 8c3f126e70 Test: Check for buffer overrun 2015-04-05 11:57:43 -04:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
João Matos b5ddc30ebc [System.IO.Compression] Fixed DeflateStream native error when handling empty input.
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=22346
2014-12-16 18:56:24 +00:00
João Matos 025877a34b [System] Restrict GZip/DeflateStream tests to .NET 4.5. 2014-08-12 17:36:26 +01:00
João Matos f39bebefea [System] Implemented .NET 4.5 overloads for GZipStream and DeflateStream.
Fixes xambug #21982.
2014-08-12 16:17:08 +01:00
marcos henrich 19f48e7920 Test that DeflateStream.Read does read an empty stream. Covers #19313. 2014-06-02 08:21:08 +01:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Gonzalo Paniagua Javier 9123958933 2009-10-24 Gonzalo Paniagua Javier <[email protected]>
* DeflateStreamTest.cs: test from bug #549492.


svn path=/trunk/mcs/; revision=144802
2009-10-24 17:26:48 +00:00
Gert Driesen 6b10903f70 * DeflateStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Added test for bug #327480. Code formatting.
* GzipStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Code formatting.
* DeflateStream.cs: Avoid double free. Fixes bug #327480.

svn path=/trunk/mcs/; revision=86218
2007-09-22 16:50:02 +00:00
Jonathan Chambers b97eed1aa4 2007-05-08 Jonathan Chambers <[email protected]>
* DeflateStreamTest.cs, GzipStreamTest.cs : disabled tests that are
          hanging on my machine (and maybe buildbot). Will enable if
          this does not fix buildbot hang.


svn path=/trunk/mcs/; revision=76957
2007-05-08 18:45:16 +00:00
Atsushi Eno d91b8a775d 2006-05-08 Atsushi Enomoto <[email protected]>
* DeflateStreamTest.cs, GzipStreamTest.cs : enabled tests that are
	  marked as NotWorking. Closed bug #72143.


svn path=/trunk/mcs/; revision=60397
2006-05-08 08:20:00 +00:00
Sebastien Pouliot f8899160fe 2005-05-18 Sebastien Pouliot <[email protected]>
* DeflateStreamCas.cs: New. CAS unit tests to test stack propagation 
	for BeginRead and BeginWrite.
	* DeflateStreamTest.cs: Added tests for constructor. Fixed tests to 
	execute without error with 2.0 beta2. Removed "NotWorking" for some 
	(fixed) tests.
	* GZipStreamCas.cs: New. CAS unit tests to test stack propagation 
	for BeginRead and BeginWrite.
	* GzipStreamTest.cs: Renamed class to GZipStream. : Added tests for 
	constructor. Fixed tests to execute without error with 2.0 beta2. 
	Removed "NotWorking" for some (fixed) tests.

svn path=/trunk/mcs/; revision=44715
2005-05-18 19:46:28 +00:00
Zoltan Varga 35c9f7cd4d 2005-02-02 Zoltan Varga <[email protected]>
* GzipStreamTest.cs DeflateStreamTest.cs: Mark failing tests with
	[Category("NotWorking")]

	* ChangeLog: New file.

svn path=/trunk/mcs/; revision=40004
2005-02-02 19:48:05 +00:00
Raja R Harinath ebd4a7df44 In Test:
* System.IO.Compression/GzipStreamTest.cs: Fix compile errors.
	* System.IO.Compression/GzipStreamTest.cs: Likewise.

In System.IO.Compression:
	* DeflateStream.cs, GzipStream.cs, CompressionMode.cs: Make class public.

svn path=/trunk/mcs/; revision=37025
2004-12-03 15:11:36 +00:00
Raja R Harinath a1579959ab * System.IO.Compression/DeflateStreamTest.cs: NET_2_0 only.
* System.IO.Compression/GzipStreamTest.cs: Likewise.
Report from Mayank Ritvik <[email protected]>.

svn path=/trunk/mcs/; revision=34667
2004-10-04 12:15:10 +00:00
Miguel de Icaza ff0d74eeb5 Add System.IO.Compression from Chris Lahey ([email protected])
svn path=/trunk/mcs/; revision=34610
2004-10-02 18:48:07 +00:00