diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2016-03-03 14:15:53 -0800 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2016-03-03 14:15:53 -0800 |
commit | 6cde55e0931af3d4e6a778f674d1ff1871827a97 (patch) | |
tree | 1a2eb3206d6affd7ac9d3dcb5fca799dfd60cebd /tests | |
parent | f0162260d8d62f0c992266fb8118d45ac6506e99 (diff) | |
download | coreclr-6cde55e0931af3d4e6a778f674d1ff1871827a97.tar.gz coreclr-6cde55e0931af3d4e6a778f674d1ff1871827a97.tar.bz2 coreclr-6cde55e0931af3d4e6a778f674d1ff1871827a97.zip |
Remove Monitor/EnterExit15.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/baseservices/threading/generics/Monitor/EnterExit15.cs | 93 | ||||
-rw-r--r-- | tests/src/baseservices/threading/generics/Monitor/EnterExit15.csproj | 48 |
2 files changed, 0 insertions, 141 deletions
diff --git a/tests/src/baseservices/threading/generics/Monitor/EnterExit15.cs b/tests/src/baseservices/threading/generics/Monitor/EnterExit15.cs deleted file mode 100644 index 41f913770d..0000000000 --- a/tests/src/baseservices/threading/generics/Monitor/EnterExit15.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using System.Threading; - -public struct ValX1<T> {} -public class RefX1<T> {} - -struct Gen<T> -{ - public static void EnterExitTest() - { - Gen<T> monitor = new Gen<T>(); - TestHelper myHelper = new TestHelper(Test.nThreads); - // MonitorDelegate[] consumer = new MonitorDelegate[Test.nThreads]; - // for(int i=0;i<Test.nThreads;i++) - // { - // consumer[i] = new MonitorDelegate(myHelper.Consumer); - // consumer[i].BeginInvoke(monitor,null,null); - // } - for (int i = 0; i < Test.nThreads; i++) - { - ThreadPool.QueueUserWorkItem(state => - { - myHelper.Consumer(monitor); - }); - } - - for(int i=0;i<6;i++) - { - if(myHelper.m_Event.WaitOne(10000))//,true)) - break; - if(myHelper.Error == true) - break; - } - Test.Eval(!myHelper.Error); - } -} - -public class Test -{ - public static int nThreads = 10; - public static int counter = 0; - public static bool result = true; - public static void Eval(bool exp) - { - counter++; - if (!exp) - { - result = exp; - Console.WriteLine("Test Failed at location: " + counter); - } - - } - - public static int Main() - { - Gen<int>.EnterExitTest(); - Gen<double>.EnterExitTest(); - Gen<string>.EnterExitTest(); - Gen<object>.EnterExitTest(); - Gen<Guid>.EnterExitTest(); - - Gen<int[]>.EnterExitTest(); - Gen<double[,]>.EnterExitTest(); - Gen<string[][][]>.EnterExitTest(); - Gen<object[,,,]>.EnterExitTest(); - Gen<Guid[][,,,][]>.EnterExitTest(); - - Gen<RefX1<int>[]>.EnterExitTest(); - Gen<RefX1<double>[,]>.EnterExitTest(); - Gen<RefX1<string>[][][]>.EnterExitTest(); - Gen<RefX1<object>[,,,]>.EnterExitTest(); - Gen<RefX1<Guid>[][,,,][]>.EnterExitTest(); - - Gen<ValX1<int>[]>.EnterExitTest(); - Gen<ValX1<double>[,]>.EnterExitTest(); - Gen<ValX1<string>[][][]>.EnterExitTest(); - Gen<ValX1<object>[,,,]>.EnterExitTest(); - Gen<ValX1<Guid>[][,,,][]>.EnterExitTest(); - - if (result) - { - Console.WriteLine("Test Passed"); - return 100; - } - else - { - Console.WriteLine("Test Failed"); - return 1; - } - } -} - - diff --git a/tests/src/baseservices/threading/generics/Monitor/EnterExit15.csproj b/tests/src/baseservices/threading/generics/Monitor/EnterExit15.csproj deleted file mode 100644 index 2558d0ddb2..0000000000 --- a/tests/src/baseservices/threading/generics/Monitor/EnterExit15.csproj +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{a1f1c234-d043-412e-bae9-36a26936dab5}</ProjectGuid> - <OutputType>Exe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <ReferenceLocalMscorlib>false</ReferenceLocalMscorlib> - <CLRTestKind>BuildAndRun</CLRTestKind> - <CLRTestPriority>0</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <!-- Add Compile Object Here --> - <Compile Include="EnterExit15.cs" /> - <Compile Include="MonitorHelper.cs" /> - </ItemGroup> - <ItemGroup> - <None Include="project.json" /> - </ItemGroup> - <ItemGroup> - <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="../../../Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> - <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> - </PropertyGroup> -</Project>
\ No newline at end of file |