1010public partial class ThreadPoolBoundHandleTests
1111{
1212 [ Fact ]
13+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
1314 public unsafe void AllocateNativeOverlapped_NullAsCallback_ThrowsArgumentNullException ( )
1415 {
1516 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -22,6 +23,7 @@ public unsafe void AllocateNativeOverlapped_NullAsCallback_ThrowsArgumentNullExc
2223 }
2324
2425 [ Fact ]
26+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
2527 public unsafe void AllocateNativeOverlapped_PreAllocated_ThrowsArgumentNullException ( )
2628 {
2729 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -34,6 +36,7 @@ public unsafe void AllocateNativeOverlapped_PreAllocated_ThrowsArgumentNullExcep
3436 }
3537
3638 [ Fact ]
39+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
3740 public unsafe void AllocateNativeOverlapped_NullAsContext_DoesNotThrow ( )
3841 {
3942 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -47,6 +50,7 @@ public unsafe void AllocateNativeOverlapped_NullAsContext_DoesNotThrow()
4750 }
4851
4952 [ Fact ]
53+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
5054 public unsafe void AllocateNativeOverlapped_NullAsPinData_DoesNotThrow ( )
5155 {
5256 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -60,6 +64,7 @@ public unsafe void AllocateNativeOverlapped_NullAsPinData_DoesNotThrow()
6064 }
6165
6266 [ Fact ]
67+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
6368 public unsafe void AllocateNativeOverlapped_EmptyArrayAsPinData_DoesNotThrow ( )
6469 {
6570 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -73,6 +78,7 @@ public unsafe void AllocateNativeOverlapped_EmptyArrayAsPinData_DoesNotThrow()
7378 }
7479
7580 [ Fact ]
81+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
7682 public unsafe void AllocateNativeOverlapped_NonBlittableTypeAsPinData_Throws ( )
7783 {
7884 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -82,6 +88,7 @@ public unsafe void AllocateNativeOverlapped_NonBlittableTypeAsPinData_Throws()
8288 }
8389
8490 [ Fact ]
91+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
8592 public unsafe void AllocateNativeOverlapped_BlittableTypeAsPinData_DoesNotThrow ( )
8693 {
8794 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -95,6 +102,7 @@ public unsafe void AllocateNativeOverlapped_BlittableTypeAsPinData_DoesNotThrow(
95102 }
96103
97104 [ Fact ]
105+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
98106 public unsafe void AllocateNativeOverlapped_ObjectArrayAsPinData_DoesNotThrow ( )
99107 {
100108 object [ ] array = new object [ ]
@@ -113,6 +121,7 @@ public unsafe void AllocateNativeOverlapped_ObjectArrayAsPinData_DoesNotThrow()
113121 }
114122
115123 [ Fact ]
124+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
116125 public unsafe void AllocateNativeOverlapped_ObjectArrayWithNonBlittableTypeAsPinData_Throws ( )
117126 {
118127 object [ ] array = new object [ ]
@@ -127,6 +136,7 @@ public unsafe void AllocateNativeOverlapped_ObjectArrayWithNonBlittableTypeAsPin
127136 }
128137
129138 [ Fact ]
139+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
130140 public unsafe void AllocateNativeOverlapped_ReturnedNativeOverlapped_AllFieldsZero ( )
131141 {
132142 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -144,6 +154,7 @@ public unsafe void AllocateNativeOverlapped_ReturnedNativeOverlapped_AllFieldsZe
144154 }
145155
146156 [ Fact ]
157+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
147158 public unsafe void AllocateNativeOverlapped_PreAllocated_ReturnedNativeOverlapped_AllFieldsZero ( )
148159 {
149160 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -164,6 +175,7 @@ public unsafe void AllocateNativeOverlapped_PreAllocated_ReturnedNativeOverlappe
164175 }
165176
166177 [ Fact ]
178+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
167179 public unsafe void AllocateNativeOverlapped_PossibleReusedReturnedNativeOverlapped_OffsetLowAndOffsetHighSetToZero ( )
168180 { // The CLR reuses NativeOverlapped underneath, check to make sure that they reset fields back to zero
169181
@@ -187,6 +199,7 @@ public unsafe void AllocateNativeOverlapped_PossibleReusedReturnedNativeOverlapp
187199 }
188200
189201 [ Fact ]
202+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
190203 public unsafe void AllocateNativeOverlapped_PreAllocated_ReusedReturnedNativeOverlapped_OffsetLowAndOffsetHighSetToZero ( )
191204 { // The CLR reuses NativeOverlapped underneath, check to make sure that they reset fields back to zero
192205
@@ -211,6 +224,7 @@ public unsafe void AllocateNativeOverlapped_PreAllocated_ReusedReturnedNativeOve
211224 }
212225
213226 [ Fact ]
227+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
214228 public unsafe void AllocateNativeOverlapped_WhenDisposed_ThrowsObjectDisposedException ( )
215229 {
216230 ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) ;
@@ -223,6 +237,7 @@ public unsafe void AllocateNativeOverlapped_WhenDisposed_ThrowsObjectDisposedExc
223237 }
224238
225239 [ Fact ]
240+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
226241 public unsafe void AllocateNativeOverlapped_PreAllocated_WhenDisposed_ThrowsObjectDisposedException ( )
227242 {
228243 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
@@ -238,6 +253,7 @@ public unsafe void AllocateNativeOverlapped_PreAllocated_WhenDisposed_ThrowsObje
238253 }
239254
240255 [ Fact ]
256+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
241257 public unsafe void AllocateNativeOverlapped_PreAllocated_WhenHandleDisposed_ThrowsObjectDisposedException ( )
242258 {
243259 ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) ;
@@ -252,6 +268,7 @@ public unsafe void AllocateNativeOverlapped_PreAllocated_WhenHandleDisposed_Thro
252268 }
253269
254270 [ Fact ]
271+ [ PlatformSpecific ( TestPlatforms . Windows ) ] // ThreadPoolBoundHandle.BindHandle is not supported on Unix
255272 public unsafe void AllocateNativeOverlapped_PreAllocated_WhenAlreadyAllocated_ThrowsArgumentException ( )
256273 {
257274 using ( ThreadPoolBoundHandle handle = CreateThreadPoolBoundHandle ( ) )
0 commit comments