diff options
author | David Vossel <dvossel@digium.com> | 2010-03-03 19:02:13 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2010-03-03 19:02:13 +0000 |
commit | 59f615dbca77113a8137f3bc0bbd4eef5f16c0ce (patch) | |
tree | a7d7312b4d5fd07cc84a41585cb49232d029daff | |
parent | 3d4de4a277ff6d0144ffbda754258ddddd9381c7 (diff) |
Changes 0ms to <1ms in cli END results during 'test execute'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@250478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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); } } |