diff --git a/src/coreclr/src/zap/zapimage.cpp b/src/coreclr/src/zap/zapimage.cpp index e1139427f2680..693921963d84a 100644 --- a/src/coreclr/src/zap/zapimage.cpp +++ b/src/coreclr/src/zap/zapimage.cpp @@ -1894,7 +1894,6 @@ void ZapImage::TryCompileMethodStub(LPVOID pContext, CORINFO_METHOD_HANDLE hStub //----------------------------------------------------------------------------- BOOL ZapImage::IsVTableGapMethod(mdMethodDef md) { -#ifdef FEATURE_COMINTEROP HRESULT hr; DWORD dwAttributes; @@ -1916,9 +1915,6 @@ BOOL ZapImage::IsVTableGapMethod(mdMethodDef md) // If we make it to here we have a vtable gap method. return TRUE; -#else - return FALSE; -#endif // FEATURE_COMINTEROP } //----------------------------------------------------------------------------- diff --git a/src/tests/baseservices/typeequivalence/contracts/TypeContracts.csproj b/src/tests/baseservices/typeequivalence/contracts/TypeContracts.csproj index ce626dfdd026c..306758e5a5b85 100644 --- a/src/tests/baseservices/typeequivalence/contracts/TypeContracts.csproj +++ b/src/tests/baseservices/typeequivalence/contracts/TypeContracts.csproj @@ -1,8 +1,6 @@ Library - - true diff --git a/src/tests/baseservices/typeequivalence/impl/TypeImpl.csproj b/src/tests/baseservices/typeequivalence/impl/TypeImpl.csproj index 4c64a59beda10..b916b70076098 100644 --- a/src/tests/baseservices/typeequivalence/impl/TypeImpl.csproj +++ b/src/tests/baseservices/typeequivalence/impl/TypeImpl.csproj @@ -1,8 +1,6 @@ Library - - true diff --git a/src/tests/baseservices/typeequivalence/simple/Simple.cs b/src/tests/baseservices/typeequivalence/simple/Simple.cs index 9b0a63ecf2d11..fbfb5dbdb370e 100644 --- a/src/tests/baseservices/typeequivalence/simple/Simple.cs +++ b/src/tests/baseservices/typeequivalence/simple/Simple.cs @@ -216,6 +216,10 @@ private static void TestGenericInterfaceEquivalence() public static int Main(string[] noArgs) { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return 100; + } try { InterfaceTypesFromDifferentAssembliesAreEquivalent(); diff --git a/src/tests/baseservices/typeequivalence/simple/Simple.csproj b/src/tests/baseservices/typeequivalence/simple/Simple.csproj index e53815c61324c..028b3cc152efd 100644 --- a/src/tests/baseservices/typeequivalence/simple/Simple.csproj +++ b/src/tests/baseservices/typeequivalence/simple/Simple.csproj @@ -1,8 +1,6 @@ Exe - - true