visual tests: set test duration to zero on error

This commit is contained in:
Jiri Drbalek 2015-07-23 14:40:13 +00:00
parent 32afdb10e5
commit 96b35c540d

View file

@ -244,6 +244,7 @@ result_list runner::test_range(files_iterator begin,
r.state = STATE_ERROR;
r.name = file.string();
r.error_message = ex.what();
r.duration = std::chrono::high_resolution_clock::duration::zero();
results.emplace_back(r);
mapnik::util::apply_visitor(report_visitor(r), report.get());
++fail_count.get();