summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAaron Robinson <arobins@microsoft.com>2018-10-26 15:28:51 -0700
committerGitHub <noreply@github.com>2018-10-26 15:28:51 -0700
commit6e3a85ed945f14b0cc54c088be09acb28e39b90a (patch)
tree5ea733247f656a6f4e272ea64b95586fd22dd786 /tests
parent0844953a0c75a01cf3c85ae7b4c971dd8e20da51 (diff)
parent529b22a5ff59abae958dabc34961b20ea06f3185 (diff)
downloadcoreclr-6e3a85ed945f14b0cc54c088be09acb28e39b90a.tar.gz
coreclr-6e3a85ed945f14b0cc54c088be09acb28e39b90a.tar.bz2
coreclr-6e3a85ed945f14b0cc54c088be09acb28e39b90a.zip
Merge pull request #20621 from AaronRobinsonMSFT/block_tests_WindowsNano
Add a run time check for Windows.Nano to all COM related tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/issues.targets10
-rw-r--r--tests/src/Interop/COM/NETClients/Aggregation/Program.cs6
-rw-r--r--tests/src/Interop/COM/NETClients/IDispatch/Program.cs6
-rw-r--r--tests/src/Interop/COM/NETClients/Primitives/Program.cs6
-rw-r--r--tests/src/Interop/COM/NativeClients/Primitives.csproj2
-rw-r--r--tests/src/Interop/common/ExeLauncherProgram.cs8
6 files changed, 28 insertions, 10 deletions
diff --git a/tests/issues.targets b/tests/issues.targets
index e252b89530..101e3ad618 100644
--- a/tests/issues.targets
+++ b/tests/issues.targets
@@ -47,16 +47,6 @@
<ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/JitBlue/GitHub_11408/GitHub_11408/*">
<Issue>11408</Issue>
</ExcludeList>
- <!-- Disable COM tests since they don't properly run on Windows.Nano and at present there is no way to special case that OS flavor. -->
- <ExcludeList Include="$(XunitTestBinBase)/Interop/COM/NETClients/Primitives/NETClientPrimitives/NETClientPrimitives.cmd">
- <Issue>19164</Issue>
- </ExcludeList>
- <ExcludeList Include="$(XunitTestBinBase)/Interop/COM/NativeClients/Primitives/Primitives.cmd">
- <Issue>19164</Issue>
- </ExcludeList>
- <ExcludeList Include="$(XunitTestBinBase)/Interop/COM/NETClients/IDispatch/NETClientIDispatch/NETClientIDispatch.cmd">
- <Issue>19164</Issue>
- </ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/baseservices/exceptions/StackTracePreserve/StackTracePreserveTests/*">
<Issue>20322</Issue>
</ExcludeList>
diff --git a/tests/src/Interop/COM/NETClients/Aggregation/Program.cs b/tests/src/Interop/COM/NETClients/Aggregation/Program.cs
index 4d595634ed..50cc7618a1 100644
--- a/tests/src/Interop/COM/NETClients/Aggregation/Program.cs
+++ b/tests/src/Interop/COM/NETClients/Aggregation/Program.cs
@@ -29,6 +29,12 @@ namespace NetClient
static int Main(string[] doNotUse)
{
+ // RegFree COM is not supported on Windows Nano
+ if (Utilities.IsWindowsNanoServer)
+ {
+ return 100;
+ }
+
try
{
ValidateNativeOuter();
diff --git a/tests/src/Interop/COM/NETClients/IDispatch/Program.cs b/tests/src/Interop/COM/NETClients/IDispatch/Program.cs
index 58083bf835..ad44b300d0 100644
--- a/tests/src/Interop/COM/NETClients/IDispatch/Program.cs
+++ b/tests/src/Interop/COM/NETClients/IDispatch/Program.cs
@@ -153,6 +153,12 @@ namespace NetClient
static int Main(string[] doNotUse)
{
+ // RegFree COM is not supported on Windows Nano
+ if (Utilities.IsWindowsNanoServer)
+ {
+ return 100;
+ }
+
try
{
Validate_Numeric_In_ReturnByRef();
diff --git a/tests/src/Interop/COM/NETClients/Primitives/Program.cs b/tests/src/Interop/COM/NETClients/Primitives/Program.cs
index cf0249af66..08805b2f86 100644
--- a/tests/src/Interop/COM/NETClients/Primitives/Program.cs
+++ b/tests/src/Interop/COM/NETClients/Primitives/Program.cs
@@ -10,6 +10,12 @@ namespace NetClient
{
static int Main(string[] doNotUse)
{
+ // RegFree COM is not supported on Windows Nano
+ if (TestLibrary.Utilities.IsWindowsNanoServer)
+ {
+ return 100;
+ }
+
try
{
new NumericTests().Run();
diff --git a/tests/src/Interop/COM/NativeClients/Primitives.csproj b/tests/src/Interop/COM/NativeClients/Primitives.csproj
index b9fb912213..2aa9343ffd 100644
--- a/tests/src/Interop/COM/NativeClients/Primitives.csproj
+++ b/tests/src/Interop/COM/NativeClients/Primitives.csproj
@@ -8,6 +8,7 @@
<TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
<DisableProjectBuild Condition="'$(TargetsUnix)' == 'true'">true</DisableProjectBuild>
+ <DefineConstants>BLOCK_WINDOWS_NANO</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(InteropCommonDir)ExeLauncherProgram.cs" />
@@ -15,6 +16,7 @@
<ItemGroup>
<ProjectReference Include="Primitives/CMakeLists.txt"/>
<ProjectReference Include="../NetServer/NetServer.csproj" />
+ <ProjectReference Include="../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project> \ No newline at end of file
diff --git a/tests/src/Interop/common/ExeLauncherProgram.cs b/tests/src/Interop/common/ExeLauncherProgram.cs
index 7f643f3d71..9d4ada32d2 100644
--- a/tests/src/Interop/common/ExeLauncherProgram.cs
+++ b/tests/src/Interop/common/ExeLauncherProgram.cs
@@ -22,6 +22,14 @@ public class Program
return 100;
}
+#if BLOCK_WINDOWS_NANO
+ // Not supported on Windows Nano
+ if (TestLibrary.Utilities.IsWindowsNanoServer)
+ {
+ return 100;
+ }
+#endif
+
string workingDir = Environment.CurrentDirectory;
Console.WriteLine($"Searching for exe to launch in {workingDir}...");