[corlib] Fix tests for System.Runtime.InteropServices.SafeHandle
authorLudovic Henry <ludovic.henry@xamarin.com>
Tue, 26 May 2015 23:16:28 +0000 (20:16 -0300)
committerLudovic Henry <ludovic.henry@xamarin.com>
Wed, 27 May 2015 13:28:49 +0000 (10:28 -0300)
commitbdf0af5e62333f0f25a6bb933bf49b1ef7ed139b
tree37e55abd1b38d9f02b2a2cebaa84f5df9ca978b9
parentb13795141ddf0f1a931c0b660d016005b96a6783
[corlib] Fix tests for System.Runtime.InteropServices.SafeHandle

These tests would tend to leave non disposed SafeHandle which would later be finalized, then throwing ObjectDisposedException. They would also crash on .NET.
mcs/class/corlib/Test/System.Runtime.InteropServices/SafeHandleTest.cs