diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-03 19:02:13 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-03 19:02:13 +0000 |
commit | a5ea1fa274e5a6bf53136e1bc99e3a025a8f45cf (patch) | |
tree | a7d7312b4d5fd07cc84a41585cb49232d029daff | |
parent | d86eba05fd497b5d0a75d3973c17feac07c90b03 (diff) |
Changes 0ms to <1ms in cli END results during 'test execute'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250478 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/test.c b/main/test.c index 4cf483b2b..fd5e5c728 100644 --- a/main/test.c +++ b/main/test.c @@ -291,10 +291,11 @@ static int test_execute_multiple(const char *name, const char *category, struct (test->state == AST_TEST_FAIL) ? COLOR_RED : COLOR_GREEN, 0, sizeof(result_buf)); - ast_cli(cli->fd, "END %s - %s Time: %dms Result: %s\n", + ast_cli(cli->fd, "END %s - %s Time: %s%dms Result: %s\n", test->info.category, test->info.name, - test->time, + test->time ? "" : "<", + test->time ? test->time : 1, result_buf); } } |