Miguel de Icaza
0699e4da36
Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename test
2014-09-23 10:56:04 -04:00
Alexander Köplinger
48e112d652
[Cleanup] Removed TARGET_JVM
...
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Zoltan Varga
9ad06a3bf6
[bcl] Allow Marshal.SizeOf () to work on pointer types. Fixes #17587 .
2014-02-26 15:14:39 -05:00
Zoltan Varga
9cdddca7ec
Return null when null was passed to Marshal.PtrToStructure () instead of throwing an exception. Fixes #11417 .
2013-03-26 19:59:09 +01:00
Zoltan Varga
0681cc0f83
Fix the build.
2013-03-24 09:39:46 +01:00
Zoltan Varga
70141dc9f5
Implement the Marshal.Read/WriteXXX methods using unsafe code instead of icalls.
2013-03-24 02:43:27 +01:00
Marek Safar
762b050917
Merge tests from mobile branch
2013-02-26 16:28:36 +01:00
Marek Safar
d6af35c68f
Fix more mobile tests
2013-02-12 20:02:07 +01:00
Marek Safar
afa79435aa
Update for mobile profile
2013-02-07 16:34:21 +01:00
Alistair Leslie-Hughes
09280981cc
Implement Marshal.GenerateProgIdForType
2012-10-31 13:48:32 +11:00
Zoltan Varga
36640a91ad
Fix the namespace of a corlib test and quiet some tests.
2011-09-24 03:22:53 +02:00
Miguel de Icaza
2852ed0b59
Update copyrights
2011-09-13 18:26:13 -04:00
Sebastien Pouliot
0466ae48a3
Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile
2011-09-09 13:43:15 -04:00
Rodrigo Kumpera
aef40673ca
Add regression test for #655669
2010-11-25 12:28:01 -02:00
Miguel de Icaza
2b35d60a5a
2010-04-02 Miguel de Icaza <[email protected] >
...
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
had been closed.
The problem here is that we have no records of why the code that
threw a ObjectDisposedException inside the do { } while block on
DangerousAddRef was added. It seems it was added in response to
Close() methods being called and the need to throw that exception
on further calls to ObjectDisposedException.
Sadly, we have no test suites for that.
svn path=/trunk/mcs/; revision=154741
2010-04-02 21:49:40 +00:00
Sebastien Pouliot
c2b792aa48
In System.Runtime.InteropServices:
...
2009-10-15 Sebastien Pouliot <[email protected] >
* GCHandle.cs: Add missing validations
In Test/System.Runtime.InteropServices:
2009-10-15 Sebastien Pouliot <[email protected] >
* GCHandleTest.cs: Add more test cases for validations
svn path=/trunk/mcs/; revision=144204
2009-10-15 14:20:03 +00:00
Zoltan Varga
f29905064f
2009-08-13 Zoltan Varga <[email protected] >
...
* GCHandleTest.cs: Add a test for null GC handles with type
WeakTrackResurrection.
svn path=/trunk/mcs/; revision=139813
2009-08-12 23:30:32 +00:00
Zoltan Varga
047cabb88a
2009-06-20 Zoltan Varga <[email protected] >
...
* *.cs: Convert all tests to new-style nunit classes/methods.
svn path=/trunk/mcs/; revision=136553
2009-06-20 21:19:47 +00:00
Sebastien Pouliot
cbc63c7479
fix typo, thanks to Gert for quickly noticing
...
svn path=/trunk/mcs/; revision=133176
2009-04-30 12:56:15 +00:00
Sebastien Pouliot
6c9ff1c39f
2009-04-30 Sebastien Pouliot <[email protected] >
...
* MarshalTest.cs: Fix building unit tests for NET_1_1
svn path=/trunk/mcs/; revision=133171
2009-04-30 12:11:06 +00:00
Jonathan Chambers
11e576a69f
Apply patch from Tom Hindle for bug 496138 plus test case.
...
2009-04-29 Tom Hindle <[email protected] >
* Marshal.cs: Improved GetExceptionForHR to return real
C# exceptions in certain cases instead of always COMException.
svn path=/trunk/mcs/; revision=133150
2009-04-30 01:40:52 +00:00
Paolo Molaro
49fa2e3e01
Fixed the tests checking for PlatformID.
...
svn path=/trunk/mcs/; revision=115657
2008-10-13 14:39:59 +00:00
Gert Driesen
432be70324
* MarshalTest.cs: Added tests for GetHINSTANCE. Improved existing
...
tests, and removed use of ExpectedException. Use more meaningful names
for test methods. Minor code formatting.
* Marshal.cs: Fixed order of arguments for ArgumentException in
GetComSlotForMethodInfo.
svn path=/trunk/mcs/; revision=106354
2008-06-21 15:16:06 +00:00
Gert Driesen
be3f601e89
* ExternalExceptionTest.cs: Improved ctor test.
...
svn path=/trunk/mcs/; revision=92008
2007-12-29 08:54:31 +00:00
Gert Driesen
f530096640
* corlib_test.dll.sources: added ExternalExceptionTest.cs.
...
* ExternalException.cs: Set HResult to match MS.
* ExternalExceptionTest.cs: Added ctor tests.
svn path=/trunk/mcs/; revision=90631
2007-12-04 10:38:09 +00:00
Sebastien Pouliot
3218e5a17a
2007-11-06 Sebastien Pouliot <[email protected] >
...
* MarshalTest.cs: Add test for various StringTo... to check for
bug #335488 .
svn path=/trunk/mcs/; revision=89020
2007-11-06 18:48:28 +00:00
Sebastien Pouliot
28329628c2
2007-11-06 Sebastien Pouliot <[email protected] >
...
* MarshalTest.cs: Add a rountrip test case for BSTR (bug #339530 ).
svn path=/trunk/mcs/; revision=89013
2007-11-06 17:51:58 +00:00
Zoltan Varga
83160199c0
2007-09-14 Zoltan Varga <[email protected] >
...
* GCHandleTest.cs: Add some tests.
svn path=/trunk/mcs/; revision=85804
2007-09-14 14:41:02 +00:00
Robert Jordan
b1c1844d34
Enable test.
...
svn path=/trunk/mcs/; revision=84748
2007-08-23 19:55:04 +00:00
Robert Jordan
dba4a090b0
2007-08-23 Robert Jordan <[email protected] >
...
* MarshalTest.cs: Added test for HGlobal allocations. See bug #82499 .
svn path=/trunk/mcs/; revision=84677
2007-08-23 05:47:48 +00:00
motym
ea68180314
some tests comment out for target_jvm
...
svn path=/trunk/mcs/; revision=71798
2007-01-28 08:46:59 +00:00
Miguel de Icaza
24f79898c5
2006-12-11 Miguel de Icaza <[email protected] >
...
* SafeHandle.cs: Fix a handful of bugs, and add tests for them.
Only release the handle if its owned by us. Also throw
ObjectDisposedException's
svn path=/trunk/mcs/; revision=69378
2006-12-12 00:40:52 +00:00
Robert Jordan
cc17d70e3b
2006-08-31 Robert Jordan <[email protected] >
...
* MarshalTest.cs: Added tests for PtrToStringAuto/StringToHGlobalAuto.
svn path=/trunk/mcs/; revision=64660
2006-08-31 19:57:17 +00:00
Sebastien Pouliot
06c948e88f
2005-08-28 Sebastien Pouliot <[email protected] >
...
Added endian check as Marshal must use CPU endianess.
svn path=/trunk/mcs/; revision=64489
2006-08-28 19:32:36 +00:00
Sebastien Pouliot
9c2b99a861
2005-08-28 Sebastien Pouliot <[email protected] >
...
* MarshalTest.cs: Added test for ReadInt32 (versus arch endianess).
svn path=/trunk/mcs/; revision=64477
2006-08-28 15:39:26 +00:00
Jonathan Chambers
8f7298e1ea
Forgot to commit ChangeLog
...
svn path=/trunk/mcs/; revision=61567
2006-06-08 13:18:24 +00:00
Jonathan Chambers
23a48c9e75
Implement Marshal.GetComSlotForMethodInfo
...
svn path=/trunk/mcs/; revision=61566
2006-06-08 13:15:50 +00:00
Sebastien Pouliot
0920883a05
2005-10-28 Sebastien Pouliot <[email protected] >
...
* MarshalTest.cs: Added tests for 2.0 SecureTo* and ZeroFree* methods.
svn path=/trunk/mcs/; revision=52327
2005-10-28 14:56:47 +00:00
Gert Driesen
3fc83c1e68
* MarshalTest.cs: Added test for bug #76123 .
...
svn path=/trunk/mcs/; revision=50326
2005-09-20 18:42:16 +00:00
Sebastien Pouliot
468fe09de5
2005-06-13 Sebastien Pouliot <[email protected] >
...
* RuntimeEnvironmentTest.cs: Commented an assert than wasn't true when
doing a "make distcheck".
svn path=/trunk/mcs/; revision=45862
2005-06-13 13:02:26 +00:00
Ben Maurer
1a32d1acd6
fix
...
svn path=/trunk/mcs/; revision=45815
2005-06-12 03:27:34 +00:00
Sebastien Pouliot
1243ed9f48
2005-06-07 Sebastien Pouliot <[email protected] >
...
* RuntimeEnvironmentTest.cs: New. Unit tests for RuntimeEnvironment.
* RuntimeEnvironmentCas.cs: New. CAS unit tests for RuntimeEnvironment
svn path=/trunk/mcs/; revision=45580
2005-06-07 15:09:35 +00:00
Zoltan Varga
77a73598b8
2005-04-23 Zoltan Varga <[email protected] >
...
* MarshalTest.cs: Add test for OffsetOf and static fields.
svn path=/trunk/mcs/; revision=43493
2005-04-23 17:06:27 +00:00
Zoltan Varga
4987f37a49
2005-04-04 Zoltan Varga <[email protected] >
...
* GCHandleTest.cs: Add test for calling Alloc with null.
svn path=/trunk/mcs/; revision=42520
2005-04-04 13:23:40 +00:00
Paolo Molaro
111b20366a
Added test case.
...
svn path=/trunk/mcs/; revision=40817
2005-02-17 18:44:34 +00:00
Zoltan Varga
39ff8f59b2
2004-09-03 Zoltan Varga <[email protected] >
...
* MarshalTest.cs: Add test for AllocHGlobal and zero size.
svn path=/trunk/mcs/; revision=33272
2004-09-03 12:08:49 +00:00
Nick Drochak
dfd1fb461e
2004-08-31 Nick Drochak <[email protected] >
...
* MarshalTest.cs: Make tests pass on .NET 1.1.
svn path=/trunk/mcs/; revision=33090
2004-08-31 12:15:18 +00:00
Zoltan Varga
b92d0b7e63
2004-05-05 Zoltan Varga <[email protected] >
...
* MarshalTest.cs: Add test for UnsafeAddrOfPinnedArrayElement.
svn path=/trunk/mcs/; revision=26750
2004-05-05 11:04:42 +00:00
Zoltan Varga
e543124a63
2004-04-27 Zoltan Varga <[email protected] >
...
* MarshalTest.cs: New tests for PtrTo* methods and null.
svn path=/trunk/mcs/; revision=26062
2004-04-27 17:31:24 +00:00
Gonzalo Paniagua Javier
a29897a262
2004-03-15 Gonzalo Paniagua Javier <[email protected] >
...
* MarshalTest.cs: added a few tests for Marshal.SizeOf.
svn path=/trunk/mcs/; revision=24091
2004-03-16 01:36:55 +00:00