diff options
author | Brian Robbins <brianrob@microsoft.com> | 2018-02-23 21:47:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 21:47:40 -0800 |
commit | 4d3b6b3fd9b62ea5013cb6fcfd87d341d528d28a (patch) | |
tree | f8cc86390df90f1be7c9a629ff177502c7eb569a /tests | |
parent | baf143c81046efd4cfe34415f1a89d57104f735a (diff) | |
download | coreclr-4d3b6b3fd9b62ea5013cb6fcfd87d341d528d28a.tar.gz coreclr-4d3b6b3fd9b62ea5013cb6fcfd87d341d528d28a.tar.bz2 coreclr-4d3b6b3fd9b62ea5013cb6fcfd87d341d528d28a.zip |
Delete eventpipetrace test. (#16534)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/issues.targets | 3 | ||||
-rw-r--r-- | tests/src/dirs.proj | 1 | ||||
-rw-r--r-- | tests/src/tracing/eventpipetrace/EventPipeTrace.cs | 110 | ||||
-rw-r--r-- | tests/src/tracing/eventpipetrace/eventpipetrace.csproj | 30 |
4 files changed, 0 insertions, 144 deletions
diff --git a/tests/issues.targets b/tests/issues.targets index e32cc9532d..49494d21bd 100644 --- a/tests/issues.targets +++ b/tests/issues.targets @@ -190,9 +190,6 @@ <ExcludeList Include="$(XunitTestBinBase)\tracing\eventsourcetrace\**"> <Issue>15919</Issue> </ExcludeList> - <ExcludeList Include="$(XunitTestBinBase)\tracing\eventpipetrace\**"> - <Issue>15924</Issue> - </ExcludeList> </ItemGroup> <!-- The following are x86 failures --> diff --git a/tests/src/dirs.proj b/tests/src/dirs.proj index e1f8005f2b..daa39d658f 100644 --- a/tests/src/dirs.proj +++ b/tests/src/dirs.proj @@ -31,7 +31,6 @@ <DisabledProjects Include="Performance\Scenario\JitBench\unofficial_dotnet\JitBench.csproj" /> <!-- no official build support for SDK-style netcoreapp2.0 projects --> <DisabledProjects Include="Loader\classloader\generics\regressions\DD117522\Test.csproj" /> <DisabledProjects Include="Loader\classloader\generics\GenericMethods\VSW491668.csproj" /> <!-- issue 5501 --> - <DisabledProjects Include="tracing\eventpipetrace\**" /> <!-- issue 15924 --> <DisabledProjects Include="tracing\eventsource*\**" /> <!-- issue 15924 --> </ItemGroup> diff --git a/tests/src/tracing/eventpipetrace/EventPipeTrace.cs b/tests/src/tracing/eventpipetrace/EventPipeTrace.cs deleted file mode 100644 index a85271a7a3..0000000000 --- a/tests/src/tracing/eventpipetrace/EventPipeTrace.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using System.IO; -using Tracing.Tests.Common; -using Microsoft.Diagnostics.Tracing; -using Microsoft.Diagnostics.Tracing.Parsers; -using Microsoft.Diagnostics.Tracing.Parsers.Clr; - -namespace Tracing.Tests -{ - class EventPipeTrace - { - private static int allocIterations = 10000; - private static int gcIterations = 10; - - static void AssertEqual<T>(T left, T right) where T : IEquatable<T> - { - if (left.Equals(right) == false) - { - throw new Exception(string.Format("Values were not equal! {0} and {1}", left, right)); - } - } - - static int Main(string[] args) - { - bool pass = true; - bool keepOutput = false; - - // Use the first arg as an output filename if there is one - string outputFilename = null; - if (args.Length >= 1) { - outputFilename = args[0]; - keepOutput = true; - } - else { - outputFilename = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".netperf"; - } - - try - { - Console.WriteLine("\tStart: Enable tracing."); - TraceControl.EnableDefault(outputFilename); - Console.WriteLine("\tEnd: Enable tracing.\n"); - - Console.WriteLine("\tStart: Generating CLR events"); - // Allocate for allocIterations iterations. - for(int i=0; i<allocIterations; i++) - { - GC.KeepAlive(new object()); - } - // GC gcIternation times - for(int i=0; i<gcIterations; i++) - { - GC.Collect(); - } - Console.WriteLine("\tEnd: Generating CLR Events\n"); - - Console.WriteLine("\tStart: Disable tracing."); - TraceControl.Disable(); - Console.WriteLine("\tEnd: Disable tracing.\n"); - - Console.WriteLine("\tStart: Processing events from file."); - int allocTickCount = 0; - int gcTriggerCount = 0; - using (var trace = TraceEventDispatcher.GetDispatcherFromFileName(outputFilename)) - { - trace.Clr.GCAllocationTick += delegate(GCAllocationTickTraceData data) - { - allocTickCount += 1; - - // Some basic integrity checks - AssertEqual(data.TypeName, "System.Object"); - AssertEqual(data.AllocationKind.ToString(), GCAllocationKind.Small.ToString()); - AssertEqual(data.ProviderName, "Microsoft-Windows-DotNETRuntime"); - AssertEqual(data.EventName, "GC/AllocationTick"); - }; - trace.Clr.GCTriggered += delegate(GCTriggeredTraceData data) - { - gcTriggerCount += 1; - - // Some basic integrity checks - AssertEqual(data.Reason.ToString(), GCReason.Induced.ToString()); - AssertEqual(data.ProviderName, "Microsoft-Windows-DotNETRuntime"); - AssertEqual(data.EventName, "GC/Triggered"); - }; - - trace.Process(); - } - Console.WriteLine("\tEnd: Processing events from file.\n"); - - Console.WriteLine("\tProcessed {0} GCAllocationTick events", allocTickCount); - Console.WriteLine("\tProcessed {0} GCTriggered events", gcTriggerCount); - - pass &= allocTickCount > 0; - pass &= gcTriggerCount == gcIterations; - } - finally { - if (keepOutput) - { - Console.WriteLine("\n\tOutput file: {0}", outputFilename); - } - else - { - System.IO.File.Delete(outputFilename); - } - } - - return pass ? 100 : 0; - } - } -} diff --git a/tests/src/tracing/eventpipetrace/eventpipetrace.csproj b/tests/src/tracing/eventpipetrace/eventpipetrace.csproj deleted file mode 100644 index ec7305abe9..0000000000 --- a/tests/src/tracing/eventpipetrace/eventpipetrace.csproj +++ /dev/null @@ -1,30 +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>{8E3244CB-407F-4142-BAAB-E7A55901A5FA}</ProjectGuid> - <OutputType>Exe</OutputType> - <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> - <CLRTestKind>BuildAndRun</CLRTestKind> - <DefineConstants>$(DefineConstants);STATIC</DefineConstants> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CLRTestPriority>0</CLRTestPriority> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"></PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"></PropertyGroup> - <ItemGroup> - <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> - <Visible>False</Visible> - </CodeAnalysisDependentAssemblyPaths> - </ItemGroup> - <ItemGroup> - <Compile Include="EventPipeTrace.cs" /> - <ProjectReference Include="../common/common.csproj" /> - </ItemGroup> - <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> -</Project>
\ No newline at end of file |