diff --git a/tests/arm/Tests.lst b/tests/arm/Tests.lst
index 0cd09e6b964c..b18febd2cacc 100644
--- a/tests/arm/Tests.lst
+++ b/tests/arm/Tests.lst
@@ -2892,14 +2892,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyInt32Array.cmd_363]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt32Array\CopyInt32Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt32Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[Generated528.cmd_364]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest528\Generated528\Generated528.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest528\Generated528
@@ -10940,14 +10932,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteInt64.cmd_1375]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt64\ReadWriteInt64.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[AutoConstructTrue.cmd_1376]
RelativePath=baseservices\threading\events\EventWaitHandle\unit\AutoConstructTrue\AutoConstructTrue.cmd
WorkingDir=baseservices\threading\events\EventWaitHandle\unit\AutoConstructTrue
@@ -12532,14 +12516,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyInt64Array.cmd_1577]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt64Array\CopyInt64Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt64Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[_il_dbgrefloc_o2.cmd_1578]
RelativePath=JIT\Methodical\explicit\basic\_il_dbgrefloc_o2\_il_dbgrefloc_o2.cmd
WorkingDir=JIT\Methodical\explicit\basic\_il_dbgrefloc_o2
@@ -15812,14 +15788,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS
HostStyle=0
-[StringMarshalingTest.cmd_1988]
-RelativePath=Interop\MarshalAPI\String\StringMarshalingTest\StringMarshalingTest.cmd
-WorkingDir=Interop\MarshalAPI\String\StringMarshalingTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[b433189.cmd_1989]
RelativePath=JIT\Methodical\Coverage\b433189\b433189.cmd
WorkingDir=JIT\Methodical\Coverage\b433189
@@ -16236,14 +16204,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[UnsafeAddrOfPinnedArrayElement.cmd_2041]
-RelativePath=Interop\MarshalAPI\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement.cmd
-WorkingDir=Interop\MarshalAPI\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[Test1535.cmd_2042]
RelativePath=Regressions\coreclr\1535\Test1535\Test1535.cmd
WorkingDir=Regressions\coreclr\1535\Test1535
@@ -16556,14 +16516,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteByte.cmd_2081]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteByte\ReadWriteByte.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[ThreadStartUInt.cmd_2082]
RelativePath=baseservices\threading\paramthreadstart\ThreadStartUInt\ThreadStartUInt.cmd
WorkingDir=baseservices\threading\paramthreadstart\ThreadStartUInt
@@ -18468,14 +18420,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GetNativeVariantForObject.cmd_2321]
-RelativePath=Interop\MarshalAPI\GetNativeVariantForObject\GetNativeVariantForObject\GetNativeVariantForObject.cmd
-WorkingDir=Interop\MarshalAPI\GetNativeVariantForObject\GetNativeVariantForObject
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[Generated156.cmd_2322]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest156\Generated156\Generated156.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest156\Generated156
@@ -30060,14 +30004,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[FunctionPtrTest.cmd_3775]
-RelativePath=Interop\MarshalAPI\FunctionPointer\FunctionPtrTest\FunctionPtrTest.cmd
-WorkingDir=Interop\MarshalAPI\FunctionPointer\FunctionPtrTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[ArrayIndexOf4.cmd_3776]
RelativePath=CoreMangLib\cti\system\array\ArrayIndexOf4\ArrayIndexOf4.cmd
WorkingDir=CoreMangLib\cti\system\array\ArrayIndexOf4
@@ -38940,14 +38876,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteObject.cmd_4886]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteObject\ReadWriteObject.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteObject
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[bgt_i4.cmd_4887]
RelativePath=JIT\IL_Conformance\Old\Conformance_Base\bgt_i4\bgt_i4.cmd
WorkingDir=JIT\IL_Conformance\Old\Conformance_Base\bgt_i4
@@ -39292,14 +39220,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyByteArray.cmd_4930]
-RelativePath=Interop\MarshalAPI\Copy\CopyByteArray\CopyByteArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyByteArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[GCSimulator_146.cmd_4931]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_146\GCSimulator_146.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_146
@@ -39404,14 +39324,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteInt32.cmd_4944]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt32\ReadWriteInt32.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[5w1d-02_cs_do.cmd_4945]
RelativePath=JIT\Methodical\fp\exgen\5w1d-02_cs_do\5w1d-02_cs_do.cmd
WorkingDir=JIT\Methodical\fp\exgen\5w1d-02_cs_do
@@ -40532,14 +40444,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalStructure.cmd_5085]
-RelativePath=Interop\MarshalAPI\MarshalStructure\MarshalStructure\MarshalStructure.cmd
-WorkingDir=Interop\MarshalAPI\MarshalStructure\MarshalStructure
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[_opt_relrefarg_s.cmd_5086]
RelativePath=JIT\Methodical\explicit\basic\_opt_relrefarg_s\_opt_relrefarg_s.cmd
WorkingDir=JIT\Methodical\explicit\basic\_opt_relrefarg_s
@@ -41292,14 +41196,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GetExceptionForHR.cmd_5180]
-RelativePath=Interop\MarshalAPI\GetExceptionForHR\GetExceptionForHR\GetExceptionForHR.cmd
-WorkingDir=Interop\MarshalAPI\GetExceptionForHR\GetExceptionForHR
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[StringPadLeft2.cmd_5181]
RelativePath=CoreMangLib\cti\system\string\StringPadLeft2\StringPadLeft2.cmd
WorkingDir=CoreMangLib\cti\system\string\StringPadLeft2
@@ -43724,14 +43620,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[MarshalClassTests.cmd_5485]
-RelativePath=Interop\MarshalAPI\Miscellaneous\MarshalClassTests\MarshalClassTests.cmd
-WorkingDir=Interop\MarshalAPI\Miscellaneous\MarshalClassTests
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[hfa_sf2E_d.cmd_5486]
RelativePath=JIT\jit64\hfa\main\testE\hfa_sf2E_d\hfa_sf2E_d.cmd
WorkingDir=JIT\jit64\hfa\main\testE\hfa_sf2E_d
@@ -45356,14 +45244,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyDoubleArray.cmd_5690]
-RelativePath=Interop\MarshalAPI\Copy\CopyDoubleArray\CopyDoubleArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyDoubleArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[GCSimulator_173.cmd_5691]
RelativePath=GC\Scenarios\GCSimulator\GCSimulator_173\GCSimulator_173.cmd
WorkingDir=GC\Scenarios\GCSimulator\GCSimulator_173
@@ -49884,14 +49764,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GetObjectsForNativeVariants.cmd_6260]
-RelativePath=Interop\MarshalAPI\GetObjectsForNativeVariants\GetObjectsForNativeVariants\GetObjectsForNativeVariants.cmd
-WorkingDir=Interop\MarshalAPI\GetObjectsForNativeVariants\GetObjectsForNativeVariants
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[b49322.cmd_6261]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b49322\b49322\b49322.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M11-Beta1\b49322\b49322
@@ -58572,14 +58444,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[GetObjectForNativeVariant.cmd_7352]
-RelativePath=Interop\MarshalAPI\GetObjectForNativeVariant\GetObjectForNativeVariant\GetObjectForNativeVariant.cmd
-WorkingDir=Interop\MarshalAPI\GetObjectForNativeVariant\GetObjectForNativeVariant
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[hfa_sd0B_d.cmd_7353]
RelativePath=JIT\jit64\hfa\main\testB\hfa_sd0B_d\hfa_sd0B_d.cmd
WorkingDir=JIT\jit64\hfa\main\testB\hfa_sd0B_d
@@ -60092,14 +59956,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopySingleArray.cmd_7542]
-RelativePath=Interop\MarshalAPI\Copy\CopySingleArray\CopySingleArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopySingleArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[b72828.cmd_7543]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b72828\b72828\b72828.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M12-Beta2\b72828\b72828
@@ -66764,14 +66620,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[OffsetOf.cmd_8381]
-RelativePath=Interop\MarshalAPI\OffsetOf\OffsetOf\OffsetOf.cmd
-WorkingDir=Interop\MarshalAPI\OffsetOf\OffsetOf
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[DblDivConst.cmd_8382]
RelativePath=JIT\CodeGenBringUpTests\DblDivConst_ro\DblDivConst_ro.cmd
WorkingDir=JIT\CodeGenBringUpTests\DblDivConst_ro
@@ -68892,14 +68740,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyIntPtrArray.cmd_8647]
-RelativePath=Interop\MarshalAPI\Copy\CopyIntPtrArray\CopyIntPtrArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyIntPtrArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[LVNumCnt1.cmd_8648]
RelativePath=JIT\opt\DumpDisasm\JitMinOpts\LVNumCnt1\LVNumCnt1.cmd
WorkingDir=JIT\opt\DumpDisasm\JitMinOpts\LVNumCnt1
@@ -74980,14 +74820,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[AutoLayoutStructure.cmd_9413]
-RelativePath=Interop\MarshalAPI\Miscellaneous\AutoLayoutStructure\AutoLayoutStructure.cmd
-WorkingDir=Interop\MarshalAPI\Miscellaneous\AutoLayoutStructure
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[b05784.cmd_9414]
RelativePath=JIT\Regression\CLR-x86-JIT\V1-M10\b05784\b05784\b05784.cmd
WorkingDir=JIT\Regression\CLR-x86-JIT\V1-M10\b05784\b05784
@@ -81108,14 +80940,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[CopyCharArray.cmd_10188]
-RelativePath=Interop\MarshalAPI\Copy\CopyCharArray\CopyCharArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyCharArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[NullableValue.cmd_10189]
RelativePath=CoreMangLib\cti\system\nullable\NullableValue\NullableValue.cmd
WorkingDir=CoreMangLib\cti\system\nullable\NullableValue
@@ -82060,14 +81884,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[IUnknownTest.cmd_10308]
-RelativePath=Interop\MarshalAPI\IUnknown\IUnknownTest\IUnknownTest.cmd
-WorkingDir=Interop\MarshalAPI\IUnknown\IUnknownTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[OpCodesConv_U.cmd_10309]
RelativePath=CoreMangLib\cti\system\reflection\emit\opcodes\OpCodesConv_U\OpCodesConv_U.cmd
WorkingDir=CoreMangLib\cti\system\reflection\emit\opcodes\OpCodesConv_U
@@ -83780,14 +83596,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteIntPtr.cmd_10525]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteIntPtr\ReadWriteIntPtr.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteIntPtr
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[b84958.cmd_10526]
RelativePath=JIT\Regression\VS-ia64-JIT\M00\b84958\b84958\b84958.cmd
WorkingDir=JIT\Regression\VS-ia64-JIT\M00\b84958\b84958
@@ -84764,14 +84572,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;Pri1
HostStyle=0
-[ReadWriteInt16.cmd_10648]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt16\ReadWriteInt16.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[_dbgexplicit7.cmd_10649]
RelativePath=JIT\Methodical\explicit\misc\_dbgexplicit7\_dbgexplicit7.cmd
WorkingDir=JIT\Methodical\explicit\misc\_dbgexplicit7
@@ -89196,14 +88996,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS
HostStyle=0
-[CopyInt16Array.cmd_11206]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt16Array\CopyInt16Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt16Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
[Generated812.cmd_11207]
RelativePath=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest812\Generated812\Generated812.cmd
WorkingDir=Loader\classloader\TypeGeneratorTests\TypeGeneratorTest812\Generated812
diff --git a/tests/arm64/Tests.lst b/tests/arm64/Tests.lst
index 25c6f7bb2bee..2c7f403d63d1 100644
--- a/tests/arm64/Tests.lst
+++ b/tests/arm64/Tests.lst
@@ -25876,198 +25876,6 @@ MaxAllowedDurationSeconds=600
Categories=RT;EXPECTED_PASS;UNWIND
HostStyle=0
-[CopyByteArray.cmd_3481]
-RelativePath=Interop\MarshalAPI\Copy\CopyByteArray\CopyByteArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyByteArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyCharArray.cmd_3482]
-RelativePath=Interop\MarshalAPI\Copy\CopyCharArray\CopyCharArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyCharArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyDoubleArray.cmd_3483]
-RelativePath=Interop\MarshalAPI\Copy\CopyDoubleArray\CopyDoubleArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyDoubleArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyInt16Array.cmd_3484]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt16Array\CopyInt16Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt16Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyInt32Array.cmd_3485]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt32Array\CopyInt32Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt32Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyInt64Array.cmd_3486]
-RelativePath=Interop\MarshalAPI\Copy\CopyInt64Array\CopyInt64Array.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyInt64Array
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopyIntPtrArray.cmd_3487]
-RelativePath=Interop\MarshalAPI\Copy\CopyIntPtrArray\CopyIntPtrArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopyIntPtrArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[CopySingleArray.cmd_3488]
-RelativePath=Interop\MarshalAPI\Copy\CopySingleArray\CopySingleArray.cmd
-WorkingDir=Interop\MarshalAPI\Copy\CopySingleArray
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[FunctionPtrTest.cmd_3489]
-RelativePath=Interop\MarshalAPI\FunctionPointer\FunctionPtrTest\FunctionPtrTest.cmd
-WorkingDir=Interop\MarshalAPI\FunctionPointer\FunctionPtrTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[GetExceptionForHR.cmd_3490]
-RelativePath=Interop\MarshalAPI\GetExceptionForHR\GetExceptionForHR\GetExceptionForHR.cmd
-WorkingDir=Interop\MarshalAPI\GetExceptionForHR\GetExceptionForHR
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[GetNativeVariantForObject.cmd_3491]
-RelativePath=Interop\MarshalAPI\GetNativeVariantForObject\GetNativeVariantForObject\GetNativeVariantForObject.cmd
-WorkingDir=Interop\MarshalAPI\GetNativeVariantForObject\GetNativeVariantForObject
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[GetObjectForNativeVariant.cmd_3492]
-RelativePath=Interop\MarshalAPI\GetObjectForNativeVariant\GetObjectForNativeVariant\GetObjectForNativeVariant.cmd
-WorkingDir=Interop\MarshalAPI\GetObjectForNativeVariant\GetObjectForNativeVariant
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[GetObjectsForNativeVariants.cmd_3493]
-RelativePath=Interop\MarshalAPI\GetObjectsForNativeVariants\GetObjectsForNativeVariants\GetObjectsForNativeVariants.cmd
-WorkingDir=Interop\MarshalAPI\GetObjectsForNativeVariants\GetObjectsForNativeVariants
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[IUnknownTest.cmd_3494]
-RelativePath=Interop\MarshalAPI\IUnknown\IUnknownTest\IUnknownTest.cmd
-WorkingDir=Interop\MarshalAPI\IUnknown\IUnknownTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[AutoLayoutStructure.cmd_3495]
-RelativePath=Interop\MarshalAPI\Miscellaneous\AutoLayoutStructure\AutoLayoutStructure.cmd
-WorkingDir=Interop\MarshalAPI\Miscellaneous\AutoLayoutStructure
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[MarshalClassTests.cmd_3496]
-RelativePath=Interop\MarshalAPI\Miscellaneous\MarshalClassTests\MarshalClassTests.cmd
-WorkingDir=Interop\MarshalAPI\Miscellaneous\MarshalClassTests
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[OffsetOf.cmd_3497]
-RelativePath=Interop\MarshalAPI\OffsetOf\OffsetOf\OffsetOf.cmd
-WorkingDir=Interop\MarshalAPI\OffsetOf\OffsetOf
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[ReadWriteByte.cmd_3498]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteByte\ReadWriteByte.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteByte
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[ReadWriteInt16.cmd_3499]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt16\ReadWriteInt16.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt16
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[ReadWriteInt32.cmd_3500]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt32\ReadWriteInt32.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt32
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[ReadWriteInt64.cmd_3501]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteInt64\ReadWriteInt64.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteInt64
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[ReadWriteIntPtr.cmd_3502]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteIntPtr\ReadWriteIntPtr.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteIntPtr
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS
-HostStyle=0
-
-[StringMarshalingTest.cmd_3503]
-RelativePath=Interop\MarshalAPI\String\StringMarshalingTest\StringMarshalingTest.cmd
-WorkingDir=Interop\MarshalAPI\String\StringMarshalingTest
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
-[UnsafeAddrOfPinnedArrayElement.cmd_3504]
-RelativePath=Interop\MarshalAPI\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement.cmd
-WorkingDir=Interop\MarshalAPI\UnsafeAddrOfPinnedArrayElement\UnsafeAddrOfPinnedArrayElement
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;Pri1
-HostStyle=0
-
[NativeCallableTest.cmd_3505]
RelativePath=Interop\NativeCallable\NativeCallableTest\NativeCallableTest.cmd
WorkingDir=Interop\NativeCallable\NativeCallableTest
@@ -78084,14 +77892,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS;NEW;Pri1
HostStyle=0
-[MarshalStructure.cmd_10124]
-RelativePath=Interop\MarshalAPI\MarshalStructure\MarshalStructure\MarshalStructure.cmd
-WorkingDir=Interop\MarshalAPI\MarshalStructure\MarshalStructure
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;NEW
-HostStyle=0
-
[mcc_i32.cmd_10125]
RelativePath=JIT\jit64\mcc\interop\mcc_i32\mcc_i32.cmd
WorkingDir=JIT\jit64\mcc\interop\mcc_i32
@@ -90388,14 +90188,6 @@ MaxAllowedDurationSeconds=600
Categories=EXPECTED_PASS
HostStyle=0
-[ReadWriteObject.cmd_11676]
-RelativePath=Interop\MarshalAPI\ReadWrite\ReadWriteObject\ReadWriteObject.cmd
-WorkingDir=Interop\MarshalAPI\ReadWrite\ReadWriteObject
-Expected=0
-MaxAllowedDurationSeconds=600
-Categories=EXPECTED_PASS;NEW
-HostStyle=0
-
[GitHub_13404.cmd_11677]
RelativePath=JIT\Regression\JitBlue\GitHub_13404\GitHub_13404\GitHub_13404.cmd
WorkingDir=JIT\Regression\JitBlue\GitHub_13404\GitHub_13404
diff --git a/tests/issues.targets b/tests/issues.targets
index 3fab84be6e5a..aa379047df2e 100644
--- a/tests/issues.targets
+++ b/tests/issues.targets
@@ -537,15 +537,6 @@
needs triage
-
- needs triage
-
-
- needs triage
-
-
- needs triage
-
needs triage
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.cs b/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.cs
deleted file mode 100644
index 80c8491386b7..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.cs
+++ /dev/null
@@ -1,183 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyByteArrayTest
-{
- private byte[] TestArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
-
- private bool IsArrayEqual(byte[] array1, byte[] array2)
- {
- if (array1.Length != array2.Length)
- {
-
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(byte[] array1, byte[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
-
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
-
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
-
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- byte[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
-
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
-
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(byte) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(byte) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- byte[] array = new byte[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- byte[] array = new byte[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyByteArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.csproj
deleted file mode 100644
index b24fcdd66254..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyByteArray.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyByteArray
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.cs b/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.cs
deleted file mode 100644
index d862d775bd4a..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyCharArrayTest
-{
- private char[] TestArray = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' };
-
- private bool IsArrayEqual(char[] array1, char[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(char[] array1, char[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
-
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- char[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
- Assert.Fail("No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
-
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
-
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(char) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(char) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- char[] array = new char[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- char[] array = new char[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyCharArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.csproj
deleted file mode 100644
index b0e256af3d70..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyCharArray.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyCharArray
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.cs b/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.cs
deleted file mode 100644
index ed0f5d2a155c..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyDoubleArrayTest
-{
- private double[] TestArray = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 };
-
- private bool IsArrayEqual(double[] array1, double[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(double[] array1, double[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- double[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(double) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(double) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- double[] array = new double[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- double[] array = new double[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyDoubleArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.csproj
deleted file mode 100644
index 7f8d0d7b2426..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyDoubleArray.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyDoubleArray
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.cs b/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.cs
deleted file mode 100644
index 8b8036d9d81e..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.cs
+++ /dev/null
@@ -1,175 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyInt16ArrayTest
-{
- private short[] TestArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
-
- private bool IsArrayEqual(short[] array1, short[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(short[] array1, short[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- short[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(short) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(short) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- short[] array = new short[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- short[] array = new short[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyInt16ArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.csproj
deleted file mode 100644
index 1f696ed251a3..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt16Array.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyInt16Array
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.cs b/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.cs
deleted file mode 100644
index 7a5a5a71bfcc..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyInt32ArrayTest
-{
- private int[] TestArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
-
- private bool IsArrayEqual(int[] array1, int[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(int[] array1, int[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
-
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- int[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(int) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(int) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- int[] array = new int[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- int[] array = new int[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyInt32ArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.csproj
deleted file mode 100644
index d3410a0f24b8..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt32Array.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyInt32Array
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.cs b/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.cs
deleted file mode 100644
index 86809224ca95..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyInt64ArrayTest
-{
- private long[] TestArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
-
- private bool IsArrayEqual(long[] array1, long[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(long[] array1, long[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- long[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(long) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(long) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- long[] array = new long[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- long[] array = new long[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyInt64ArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.csproj
deleted file mode 100644
index 8b2c02a657c7..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyInt64Array.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyInt64Array
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.cs b/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.cs
deleted file mode 100644
index 687e6ad3a763..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.cs
+++ /dev/null
@@ -1,184 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopyIntPtrArrayTest
-{
- private IntPtr[] TestArray;
-
- private bool IsArrayEqual(IntPtr[] array1, IntPtr[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(IntPtr[] array1, IntPtr[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- IntPtr[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = IntPtr.Size * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy more elements than the TestArray has.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from an out of bound startIndex.");
- }
- catch (ArgumentOutOfRangeException)
- {
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
-
- Assert.Fail("Failed out of range values test. No exception from Copy when trying to copy from a positive startIndex, with length taking it out of bounds.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = IntPtr.Size * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- IntPtr[] array = new IntPtr[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- IntPtr[] array = new IntPtr[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public CopyIntPtrArrayTest()
- {
- TestArray = new IntPtr[10];
- for (int i = 0; i < TestArray.Length; i++)
- TestArray[i] = new IntPtr(i);
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopyIntPtrArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.csproj b/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.csproj
deleted file mode 100644
index 71eb32610a72..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopyIntPtrArray.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopyIntPtrArray
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.cs b/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.cs
deleted file mode 100644
index 702384954715..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Runtime.InteropServices.ComTypes;
-using CoreFXTestLibrary;
-
-public class CopySingleArrayTest
-{
- private float[] TestArray = { 0.0F, 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F, 7.0F, 8.0F, 9.0F };
-
- private bool IsArrayEqual(float[] array1, float[] array2)
- {
- if (array1.Length != array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < array1.Length; i++)
- if (!array1[i].Equals(array2[i]))
- {
- return false;
- }
-
- return true;
- }
-
- private bool IsSubArrayEqual(float[] array1, float[] array2, int startIndex, int Length)
- {
- if (startIndex + Length > array1.Length)
- {
-
- return false;
- }
-
- if (startIndex + Length > array2.Length)
- {
- return false;
- }
-
- for (int i = 0; i < Length; i++)
- if (!array1[startIndex + i].Equals(array2[startIndex + i]))
- {
- return false;
- }
-
- return true;
- }
-
- private void NullValueTests()
- {
- float[] array = null;
-
- try
- {
- Marshal.Copy(array, 0, IntPtr.Zero, 0);
-
- Assert.Fail("Failed null values test. No exception from Copy when passed null as parameter.");
- }
- catch (ArgumentNullException)
- {
-
- }
-
- try
- {
- Marshal.Copy(IntPtr.Zero, array, 0, 0);
- Assert.Fail("Failed null values test.");
- }
- catch (ArgumentNullException)
- {
-
- }
- }
-
- private void OutOfRangeTests()
- {
- int sizeOfArray = sizeof(float) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- try //try to copy more elements than the TestArray has
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length + 1);
- Assert.Fail("Failed out of range values test.");
-
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- try //try to copy from an out of bound startIndex
- {
- Marshal.Copy(TestArray, TestArray.Length + 1, ptr, 1);
- Assert.Fail("Failed out of range values test.");
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- try //try to copy from a positive startIndex, with length taking it out of bounds
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length);
- Assert.Fail("Failed out of range values test.");
-
- }
- catch (ArgumentOutOfRangeException)
- {
-
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- private void CopyRoundTripTests()
- {
- int sizeOfArray = sizeof(float) * TestArray.Length;
-
- IntPtr ptr = Marshal.AllocCoTaskMem(sizeOfArray);
-
- //try to copy the entire array
- {
- Marshal.Copy(TestArray, 0, ptr, TestArray.Length);
-
- float[] array = new float[TestArray.Length];
-
- Marshal.Copy(ptr, array, 0, TestArray.Length);
-
- if (!IsArrayEqual(TestArray, array))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip copied arrays do not match.");
- }
- }
-
- //try to copy part of the array
- {
- Marshal.Copy(TestArray, 2, ptr, TestArray.Length - 4);
-
- float[] array = new float[TestArray.Length];
-
- Marshal.Copy(ptr, array, 2, TestArray.Length - 4);
-
- if (!IsSubArrayEqual(TestArray, array, 2, TestArray.Length - 4))
- {
- Assert.Fail("Failed copy round trip test. Original array and round trip partially copied arrays do not match.");
- }
- }
-
- Marshal.FreeCoTaskMem(ptr);
- }
-
- public void RunTests()
- {
- NullValueTests();
- OutOfRangeTests();
- CopyRoundTripTests();
- }
-
- public static int Main(String[] unusedArgs)
- {
- try
- {
- new CopySingleArrayTest().RunTests();
- }
- catch (Exception e)
- {
- Console.WriteLine("Test failure: " + e.Message);
- return 101;
- }
-
- return 100;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.csproj b/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.csproj
deleted file mode 100644
index 72d074a7c59f..000000000000
--- a/tests/src/Interop/MarshalAPI/Copy/CopySingleArray.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- CopySingleArray
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.cs b/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.cs
deleted file mode 100644
index ae88f97b8a95..000000000000
--- a/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-using System;
-using System.IO;
-using System.Reflection;
-using System.Security;
-using System.Runtime.InteropServices;
-using System.Diagnostics;
-
-public class GetExceptionForHRTest
-{
- //HR:0x80020006
- void RunTests1()
- {
-
- int err = unchecked((int)0x80020006);
- Exception ex = Marshal.GetExceptionForHR(err);
- if(ex.HResult != err) throw new Exception();
- }
-
- //0x80020101
- void RunTest2()
- {
- int err = unchecked((int)0x80020101);
- Exception ex = Marshal.GetExceptionForHR(err);
- if(ex.HResult != err) throw new Exception();
- }
-
- public bool RunTests()
- {
- RunTests1();
- RunTest2();
- return true;
- }
-
- public static int Main(String[] unusedArgs)
- {
- if (new GetExceptionForHRTest().RunTests())
- return 100;
- return 99;
- }
-
-}
diff --git a/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.csproj b/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.csproj
deleted file mode 100644
index 9f1bc7bd0f8a..000000000000
--- a/tests/src/Interop/MarshalAPI/GetExceptionForHR/GetExceptionForHR.csproj
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- GetExceptionForHR
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.cs b/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.cs
deleted file mode 100644
index 89ec450fc793..000000000000
--- a/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System;
-using System.IO;
-using System.Reflection;
-using System.Runtime.InteropServices;
-using CoreFXTestLibrary;
-
-public class GetNativeVariantForObjectTest
-{
- internal struct Variant
- {
- public ushort vt;
- public ushort wReserved1;
- public ushort wReserved2;
- public ushort wReserved3;
- public IntPtr bstrVal;
- public IntPtr pRecInfo;
- }
-
- public static void NullParameter()
- {
- Assert.Throws(() => Marshal.GetNativeVariantForObject(new object(),IntPtr.Zero));
- Assert.Throws(() => Marshal.GetNativeVariantForObject(1, IntPtr.Zero));
- }
-
- public static void EmptyObject()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(null, pNative);
- object o = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(null, o);
- }
-
- public static void PrimitiveType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(99, pNative);
- ushort actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(99, actual);
- }
-
- public static void Char()
- {
- // GetNativeVariantForObject supports char, but internally recognizes it the same as ushort
- // because the native variant type uses mscorlib type VarEnum to store what type it contains.
- // To get back the original char, use GetObjectForNativeVariant and cast to char.
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject('a', pNative);
- ushort actual = Marshal.GetObjectForNativeVariant(pNative);
- char actualChar = (char)actual;
- Assert.AreEqual('a', actual);
- }
-
- public static void CharNegative()
- {
- // While GetNativeVariantForObject supports taking chars, GetObjectForNativeVariant will
- // never return a char. The internal type is ushort, as mentioned above. This behavior
- // is the same on ProjectN and Desktop CLR.
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject('a', pNative);
- Assert.Throws(() =>
- {
- char actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual('a', actual);
- });
- }
-
- public static void StringType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject("99", pNative);
- string actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual("99", actual);
- }
-
- public static void DoubleType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(3.14, pNative);
- double actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(3.14, actual);
- }
-
- public static int Main(String[] unusedArgs)
- {
- EmptyObject();
- PrimitiveType();
- Char();
- CharNegative();
- StringType();
- DoubleType();
- return 100;
- }
-}
diff --git a/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.csproj b/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.csproj
deleted file mode 100644
index 6ef3c98f136f..000000000000
--- a/tests/src/Interop/MarshalAPI/GetNativeVariantForObject/GetNativeVariantForObject.csproj
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- GetNativeVariantForObject
- 2.0
- {F1E66554-8C8E-4141-85CF-D0CD6A0CD0B0}
- Exe
- {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- ..\..\
-
- $(DefineConstants);STATIC
- 0618;0649
-
-
-
-
-
-
-
-
- False
-
-
-
-
-
-
-
-
-
-
-
- {c8c0dc74-fac4-45b1-81fe-70c4808366e0}
- CoreCLRTestLibrary
-
-
-
-
diff --git a/tests/src/Interop/MarshalAPI/GetObjectForNativeVariant/GetObjectForNativeVariant.cs b/tests/src/Interop/MarshalAPI/GetObjectForNativeVariant/GetObjectForNativeVariant.cs
deleted file mode 100644
index e23690bffb9b..000000000000
--- a/tests/src/Interop/MarshalAPI/GetObjectForNativeVariant/GetObjectForNativeVariant.cs
+++ /dev/null
@@ -1,144 +0,0 @@
-using System;
-using System.IO;
-using System.Reflection;
-using System.Runtime.InteropServices;
-using CoreFXTestLibrary;
-#pragma warning disable 618
-
-public class GetObjectForNativeVariantTest
-{
- [StructLayout(LayoutKind.Sequential)]
- public struct Record {
- private IntPtr _record;
- private IntPtr _recordInfo;
- }
-
- [StructLayout(LayoutKind.Explicit)]
- public struct UnionTypes {
- [FieldOffset(0)] internal SByte _i1;
- [FieldOffset(0)] internal Int16 _i2;
- [FieldOffset(0)] internal Int32 _i4;
- [FieldOffset(0)] internal Int64 _i8;
- [FieldOffset(0)] internal Byte _ui1;
- [FieldOffset(0)] internal UInt16 _ui2;
- [FieldOffset(0)] internal UInt32 _ui4;
- [FieldOffset(0)] internal UInt64 _ui8;
- [FieldOffset(0)] internal Int32 _int;
- [FieldOffset(0)] internal UInt32 _uint;
- [FieldOffset(0)] internal Single _r4;
- [FieldOffset(0)] internal Double _r8;
- [FieldOffset(0)] internal Int64 _cy;
- [FieldOffset(0)] internal double _date;
- [FieldOffset(0)] internal IntPtr _bstr;
- [FieldOffset(0)] internal IntPtr _unknown;
- [FieldOffset(0)] internal IntPtr _dispatch;
- [FieldOffset(0)] internal IntPtr _pvarVal;
- [FieldOffset(0)] internal IntPtr _byref;
- [FieldOffset(0)] internal Record _record;
- }
-
- [StructLayout(LayoutKind.Sequential)]
- internal struct TypeUnion
- {
- public ushort vt;
- public ushort wReserved1;
- public ushort wReserved2;
- public ushort wReserved3;
- public UnionTypes _unionTypes;
- }
-
- [StructLayout(LayoutKind.Explicit)]
- internal struct Variant
- {
- [FieldOffset(0)] public TypeUnion m_Variant;
- [FieldOffset(0)] public decimal m_decimal;
- }
-
- public static void NullParameter()
- {
- Assert.Throws(() => Marshal.GetObjectForNativeVariant(IntPtr.Zero));
- Assert.Throws(() => Marshal.GetObjectForNativeVariant(IntPtr.Zero));
- }
-
- [DllImport(@"oleaut32.dll", SetLastError = true, CallingConvention = CallingConvention.StdCall)]
- static extern Int32 VariantClear(IntPtr pvarg);
-
- private static void DeleteVariant(IntPtr pVariant)
- {
- VariantClear(pVariant);
- Marshal.FreeHGlobal(pVariant);
- }
-
- public static void Decimal()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(3.14m, pNative);
- decimal d = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(3.14m, d);
-
- DeleteVariant(pNative);
- }
-
- public static void PrimitiveType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(99, pNative);
- ushort actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(99, actual);
-
- DeleteVariant(pNative);
- }
-
- public static void StringType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject("99", pNative);
- string actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual("99", actual);
-
- DeleteVariant(pNative);
- }
-
- public static void DoubleType()
- {
- Variant v = new Variant();
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject(3.14, pNative);
- double actual = Marshal.GetObjectForNativeVariant(pNative);
- Assert.AreEqual(3.14, actual);
-
- DeleteVariant(pNative);
- }
-
- public static void IUnknownType()
- {
- Variant v = new Variant();
- object obj = new object();
-
- // Technically we don't need this - but this is necessary for forcing
- // COM initialization
- IntPtr pUnk = Marshal.GetIUnknownForObject(obj);
- IntPtr pNative = Marshal.AllocHGlobal(Marshal.SizeOf(v));
- Marshal.GetNativeVariantForObject