]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Changes 0ms to <1ms in cli END results during 'test execute'
authorDavid Vossel <dvossel@digium.com>
Wed, 3 Mar 2010 19:02:13 +0000 (19:02 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 3 Mar 2010 19:02:13 +0000 (19:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@250478 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/test.c

index 4cf483b2b34aec3de5bafa4cea9d4a84a07c6552..fd5e5c7289e5081bc3d64362e932a4745a7cc7f4 100644 (file)
@@ -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);
                        }
                }