From 6fb25c1f210db2e9a9840acc542cd794b1e03bdf Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sun, 7 Oct 2018 21:35:23 +0200 Subject: [PATCH] disable profiling-related stuff --- src/ImageSharp/Common/Helpers/InliningOptions.cs | 2 +- .../Processing/Processors/Transforms/KernelMapTests.cs | 2 +- .../Processors/Transforms/ResizeProfilingBenchmarks.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Common/Helpers/InliningOptions.cs b/src/ImageSharp/Common/Helpers/InliningOptions.cs index 9356abeb9a..e1d51da8d4 100644 --- a/src/ImageSharp/Common/Helpers/InliningOptions.cs +++ b/src/ImageSharp/Common/Helpers/InliningOptions.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. // Uncomment this for verbose profiler results: -#define PROFILING +// #define PROFILING using System.Runtime.CompilerServices; namespace SixLabors.ImageSharp diff --git a/tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs b/tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs index b60853a80e..1b4b3cf6a3 100644 --- a/tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs +++ b/tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs @@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms this.Output = output; } - [Theory] + [Theory(Skip = "TODO: Add asserionts")] [InlineData(500, 200, nameof(KnownResamplers.Bicubic))] [InlineData(50, 40, nameof(KnownResamplers.Bicubic))] [InlineData(40, 30, nameof(KnownResamplers.Bicubic))] diff --git a/tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs b/tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs index 9dde8c9cf5..e24458d384 100644 --- a/tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs +++ b/tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs @@ -12,10 +12,10 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms public class ResizeProfilingBenchmarks : MeasureFixture { public const string SkipText = -#if true +#if false null; #else - "Benchmark, enable manually"! + "Benchmark, enable manually!"; #endif private readonly Configuration configuration = Configuration.CreateDefaultInstance();