[introspection] Make sure '[FAIL]' is printed before every failure. (#2578)

This makes xharness able to list the failures in the inline summary.
This commit is contained in:
Rolf Bjarne Kvinge 2017-09-01 14:58:45 +02:00 коммит произвёл GitHub
Родитель 4bc13b0ec5
Коммит 0cf7de80e2
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -66,6 +66,8 @@ namespace Introspection {
protected void AddErrorLine (string line)
{
error_output.AppendLine (line);
if (!line.StartsWith ("[FAIL] ", StringComparison.Ordinal))
Console.Error.Write ("[FAIL] ");
Console.Error.WriteLine (line);
Errors++;
}