forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite SafeHandle interop tests (dotnet#25784)
* Completely rewrite the SafeHandle tests to not only be readable but easily understandable with nicer naming. * Add useful portion of abstract-derived test back. Enable SafeHandle test off-Windows.
- Loading branch information
1 parent
4aa63bf
commit e42331e
Showing
37 changed files
with
409 additions
and
4,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 0 additions & 88 deletions
88
tests/src/Interop/PInvoke/SafeHandles/AbstractDerived/AbstractDerivedTest.cs
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
tests/src/Interop/PInvoke/SafeHandles/AbstractDerived/AbstractDerivedTest.csproj
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
|
||
cmake_minimum_required (VERSION 2.6) | ||
project (PInvoke_SafeHandle) | ||
include ("${CLR_INTEROP_TEST_ROOT}/Interop.cmake") | ||
set(SOURCES | ||
SafeHandleNative.cpp | ||
) | ||
# Additional files to reference: | ||
# StructDefs.h | ||
# SafeHandleNative.def | ||
# add the executable | ||
add_library (PInvoke_SafeHandle SHARED ${SOURCES}) | ||
# add the install targets | ||
install (TARGETS PInvoke_SafeHandle DESTINATION bin) | ||
add_library (SafeHandleNative SHARED ${SOURCES}) | ||
target_link_libraries(SafeHandleNative ${LINK_LIBRARIES_ADDITIONAL}) | ||
install (TARGETS SafeHandleNative DESTINATION bin) |
161 changes: 0 additions & 161 deletions
161
tests/src/Interop/PInvoke/SafeHandles/CleanUpCheck/CleanUpCheckTest.cs
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
tests/src/Interop/PInvoke/SafeHandles/CleanUpCheck/CleanUpCheckTest.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.