[test] Fix parsing for tests that crash.

Report a test failure when we crash rather than defaulting to pass
This commit is contained in:
Andy Williams 2016-05-16 10:12:58 +01:00
parent faf97a905c
commit ce706b6623
1 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static void _edi_consolepanel_parse_directory(const char *line)
const char *pos;
pos = strstr(line, "Entering directory ");
if (pos)
if (pos)
{
if (_current_dir)
eina_stringshare_del(_current_dir);
@ -254,6 +254,12 @@ _edi_test_line_parse_suite(const char *path)
_edi_test_fail++;
elm_code_file_line_append(_edi_test_code->file, line->start, line->length, strdup(_current_test_dir));
}
else if (_edi_test_line_contains(line->start, 10, "*** Error"))
{
_edi_test_count++;
_edi_test_fail++;
elm_code_file_line_append(_edi_test_code->file, line->start, line->length, strdup(_current_test_dir));
}
else if (_edi_test_line_contains(line->start, line->length, "Running"))
{
_edi_test_count = _edi_test_pass = _edi_test_fail = 0;