From ce706b6623f19e1d01995f3ec09e0ea5f88cb035 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Mon, 16 May 2016 10:12:58 +0100 Subject: [PATCH] [test] Fix parsing for tests that crash. Report a test failure when we crash rather than defaulting to pass --- src/bin/edi_consolepanel.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/edi_consolepanel.c b/src/bin/edi_consolepanel.c index 1d5eac6..4a8bcd2 100644 --- a/src/bin/edi_consolepanel.c +++ b/src/bin/edi_consolepanel.c @@ -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;