Restore the Linux X509Certificates tests to 0 SafeX509Handle finalizations
authorJeremy Barton <jbarton@microsoft.com>
Tue, 5 Feb 2019 21:59:08 +0000 (13:59 -0800)
committerGitHub <noreply@github.com>
Tue, 5 Feb 2019 21:59:08 +0000 (13:59 -0800)
commitdfc6fd44bb515a3d1e6a39b539af70bf7d02e73c
treeba96c417df02a83eb404bfd4305b37b88943e206
parent18f6a0d43831badfd161981da6a26ee2ad3fb8e5
Restore the Linux X509Certificates tests to 0 SafeX509Handle finalizations

Since the last drive down to zero finalizations (ensuring no platform-induced ones) a few have slipped back in.  This caused unnecessary distraction while
investigating a different problem.

This also leaves the "print a stack trace during finalization" code in place for DEBUG builds, behind an environment variable check (cached at type load).

Commit migrated from https://github.com/dotnet/corefx/commit/5012dfe0813bf9f3eaf7a6460671e07ea048fd52
src/libraries/Common/src/Microsoft/Win32/SafeHandles/SafeX509Handles.Unix.cs
src/libraries/System.Net.Http/src/System.Net.Http.csproj
src/libraries/System.Net.Security/src/System.Net.Security.csproj
src/libraries/System.Security.Cryptography.X509Certificates/src/System.Security.Cryptography.X509Certificates.csproj
src/libraries/System.Security.Cryptography.X509Certificates/tests/CertificateCreation/CertificateRequestChainTests.cs
src/libraries/System.Security.Cryptography.X509Certificates/tests/CertificateCreation/CertificateRequestUsageTests.cs
src/libraries/System.Security.Cryptography.X509Certificates/tests/ChainTests.cs