[asterisk-commits] dvossel: trunk r250478 - /trunk/main/test.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 3 13:02:16 CST 2010


Author: dvossel
Date: Wed Mar  3 13:02:13 2010
New Revision: 250478

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=250478
Log:
Changes 0ms to <1ms in cli END results during 'test execute'

Modified:
    trunk/main/test.c

Modified: trunk/main/test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/test.c?view=diff&rev=250478&r1=250477&r2=250478
==============================================================================
--- trunk/main/test.c (original)
+++ trunk/main/test.c Wed Mar  3 13:02:13 2010
@@ -291,10 +291,11 @@
 					(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);
 			}
 		}




More information about the asterisk-commits mailing list