diff --git a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs index 9016f23a74..6c4134f0ea 100644 --- a/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs +++ b/src/Platform/Microsoft.Testing.Platform/OutputDevice/Terminal/TerminalTestReporter.cs @@ -4,13 +4,9 @@ #if !NET7_0_OR_GREATER using System.Diagnostics.CodeAnalysis; using System.Reflection; - #endif using System.Globalization; -#if !NETSTANDARD -using System.Runtime.ExceptionServices; -#endif using System.Text.RegularExpressions; using Microsoft.Testing.Platform.Helpers; @@ -657,26 +653,7 @@ private static void AppendAssemblyLinkTargetFrameworkAndArchitecture(ITerminal t internal /* for testing */ static void AppendStackFrame(ITerminal terminal, string stackTraceLine) { terminal.Append(DoubleIndentation); - Match match; - try - { - match = GetFrameRegex().Match(stackTraceLine); - } - catch (RegexMatchTimeoutException ex) - { - // Add the stack trace line that was being matched to test locally. - var newTimeoutException = new RegexMatchTimeoutException(string.Format(CultureInfo.CurrentCulture, PlatformResources.TimeoutInRegexStackTraceLineParsing, stackTraceLine), ex); -#if !NETSTANDARD - throw ex.StackTrace is null - ? newTimeoutException - // Otherwise preserve the stack trace, so we can tell if this was using - // the generated regex or not. - : ExceptionDispatchInfo.SetRemoteStackTrace(newTimeoutException, ex.StackTrace); -#else - throw newTimeoutException; -#endif - } - + Match match = GetFrameRegex().Match(stackTraceLine); if (match.Success) { bool weHaveFilePathAndCodeLine = !RoslynString.IsNullOrWhiteSpace(match.Groups["code"].Value); diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx b/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx index 36568d505e..5bd7f79c1a 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx +++ b/src/Platform/Microsoft.Testing.Platform/Resources/PlatformResources.resx @@ -671,8 +671,4 @@ Takes one argument as string in the format <value>[h|m|s] where 'value' is The configuration file '{0}' specified with '--config-file' could not be found. - - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - - \ No newline at end of file + diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf index 46d43b0409..fcbdab68b9 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.cs.xlf @@ -825,11 +825,6 @@ Platné hodnoty jsou Normal a Detailed. Výchozí hodnota je Normal. Nepovedlo se vyprázdnit protokoly před vypršením časového limitu {0} s. - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Celkem diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf index 0376d01bed..154d7a643b 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.de.xlf @@ -825,11 +825,6 @@ Gültige Werte sind „Normal“, „Detailed“. Der Standardwert ist „Normal Fehler beim Leeren von Protokollen vor dem Timeout von "{0}" Sekunden - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Gesamt diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf index 5715077b33..ffc6cc0328 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.es.xlf @@ -825,11 +825,6 @@ Los valores válidos son 'Normal', 'Detallado'. El valor predeterminado es 'Norm No se pudieron vaciar los registros antes del tiempo de espera de “{0}” segundos - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Total diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf index 1c5257eec3..cd2f8e18d6 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.fr.xlf @@ -825,11 +825,6 @@ Les valeurs valides sont « Normal » et « Détaillé ». La valeur par dé Échec du vidage des journaux avant le délai d’expiration de « {0} » secondes - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Total diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf index ae174f67af..9f2e5fd171 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.it.xlf @@ -825,11 +825,6 @@ I valori validi sono 'Normal', 'Detailed'. L'impostazione predefinita è 'Normal Non è stato possibile scaricare i log prima del timeout di '{0}' secondi - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Totale diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf index 2909707e34..d506fc0e50 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ja.xlf @@ -826,11 +826,6 @@ Valid values are 'Normal', 'Detailed'. Default is 'Normal'. '{0}' 秒のタイムアウト前にログをフラッシュできませんでした - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total 合計 diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf index bdebab13af..9c15b13c2d 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ko.xlf @@ -825,11 +825,6 @@ Valid values are 'Normal', 'Detailed'. Default is 'Normal'. '{0}'초의 시간 제한 전에 로그를 플러시하지 못했습니다. - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total 합계 diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf index 533e43c562..b8e6cb922e 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pl.xlf @@ -825,11 +825,6 @@ Prawidłowe wartości to „Normalne”, „Szczegółowe”. Wartość domyśln Nie można opróżnić dzienników przed upływem limitu czasu wynoszącego „{0}” s - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Łącznie diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf index 94a569cec7..1f4c3e9aeb 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.pt-BR.xlf @@ -825,11 +825,6 @@ Os valores válidos são “Normal”, “Detalhado”. O padrão é “Normal Falha ao liberar logs antes do tempo limite de '{0}' segundos - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Total diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf index 09a6adb712..48d7556f60 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.ru.xlf @@ -825,11 +825,6 @@ Valid values are 'Normal', 'Detailed'. Default is 'Normal'. Не удалось записать журналы на диск до истечения времени ожидания ("{0}" с) - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Всего diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf index 780626d190..6c74b00cf7 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.tr.xlf @@ -825,11 +825,6 @@ Geçerli değerler: ‘Normal’, ‘Ayrıntılı’. Varsayılan değer: ‘Nor '{0}' saniyelik zaman aşımından önce günlükler boşaltılamadı - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total Toplam diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf index 2c01d09a7f..35c5ef5311 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hans.xlf @@ -825,11 +825,6 @@ Valid values are 'Normal', 'Detailed'. Default is 'Normal'. 未能在“{0}”秒超时之前刷新日志 - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total 总计 diff --git a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf index 92158a8068..b9b18bdbaa 100644 --- a/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf +++ b/src/Platform/Microsoft.Testing.Platform/Resources/xlf/PlatformResources.zh-Hant.xlf @@ -825,11 +825,6 @@ Valid values are 'Normal', 'Detailed'. Default is 'Normal'. 無法在 '{0}' 秒逾時前排清記錄 - - Parsing stack trace line with regex timed out. Input: '{0}' - Parsing stack trace line with regex timed out. Input: '{0}' - {0} is the line that was being matched - Total 總計