From af10433648950636e89d0a081e92fdb03a582755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Thu, 24 Mar 2022 07:54:26 +0100 Subject: [PATCH] AlwasyOn Profiller - Test case for non standard characters in names (#440) * AlwasyOn Profiller - Test case for non standard characters in names * fix test --- .../AlwaysOnProfilerTests.cs | 2 +- .../integrations/Samples.AlwaysOnProfiler/Program.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AlwaysOnProfilerTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AlwaysOnProfilerTests.cs index 19ce29263..83b86077c 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AlwaysOnProfilerTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/AlwaysOnProfilerTests.cs @@ -104,7 +104,7 @@ private static bool ContainStackTraceForClassHierarchy(LogRecord logRecord) { return logRecord.Body.StringValue.Contains( "\tat System.Threading.Thread.Sleep(System.TimeSpan)\n" + - "\tat My.Custom.Test.Namespace.ClassE`1.GenericMethodDFromGenericClass[TMethod, TMethod2](TClass, TMethod, TMethod2)\n" + + "\tat My.Custom.Test.Namespace.ClassENonStandardCharacters\u0104\u0118\u00D3\u0141\u017B\u0179\u0106\u0105\u0119\u00F3\u0142\u017C\u017A\u015B\u0107\u011C\u0416\u13F3\u2CC4\u02A4\u01CB\u2093\u06BF\u0B1F\u0D10\u1250\u3023\u203F\u0A6E\u1FAD_\u00601.GenericMethodDFromGenericClass[TMethod, TMethod2](TClass, TMethod, TMethod2)\n" + "\tat My.Custom.Test.Namespace.ClassD`21.MethodD(T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)\n" + "\tat My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass[T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](T01, T02, T03, T04, T05, T06, T07, T08, T09, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, Unknown)\n" + "\tat My.Custom.Test.Namespace.GenericClassC`1.GenericMethodCFromGenericClass(T)\n" + diff --git a/tracer/test/test-applications/integrations/Samples.AlwaysOnProfiler/Program.cs b/tracer/test/test-applications/integrations/Samples.AlwaysOnProfiler/Program.cs index b7e5355f9..fdbee41e5 100644 --- a/tracer/test/test-applications/integrations/Samples.AlwaysOnProfiler/Program.cs +++ b/tracer/test/test-applications/integrations/Samples.AlwaysOnProfiler/Program.cs @@ -117,12 +117,11 @@ internal static class ClassD.GenericMethodDFromGenericClass(TimeSpan.MaxValue, p01, 1); - + ClassENonStandardCharactersĄĘÓŁŻŹĆąęółżźśćĜЖᏳⳄʤNjₓڿଟഐቐ〣‿؁੮ᾭ_.GenericMethodDFromGenericClass(TimeSpan.MaxValue, p01, 1); } } - internal static class ClassE + internal static class ClassENonStandardCharactersĄĘÓŁŻŹĆąęółżźśćĜЖᏳⳄʤNjₓڿଟഐቐ〣‿؁੮ᾭ_ { public static void GenericMethodDFromGenericClass(TClass classArg, TMethod methodArg, TMethod2 additionalArg) {