[svn-commits] dvossel: trunk r238091 - /trunk/include/asterisk/test.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 6 10:36:05 CST 2010


Author: dvossel
Date: Wed Jan  6 10:36:02 2010
New Revision: 238091

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=238091
Log:
fixes test.c compile issue when TEST_FRAMEWORK is not enabled

The ast_test_status_update() function is defined in test.h.
When TEST_FRAMEWORK is not enabled a macro is defined as a no-op
place holder for this function.  The macro did not contain
the correct number of arguments.  This caused a compile error.

Much thanks to wdoekes for reporting the issue and supplying the
patch!


Modified:
    trunk/include/asterisk/test.h

Modified: trunk/include/asterisk/test.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/test.h?view=diff&rev=238091&r1=238090&r2=238091
==============================================================================
--- trunk/include/asterisk/test.h (original)
+++ trunk/include/asterisk/test.h Wed Jan  6 10:36:02 2010
@@ -126,7 +126,7 @@
 #define AST_TEST_DEFINE(hdr) static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test_args *args)
 #define AST_TEST_REGISTER(cb)
 #define AST_TEST_UNREGISTER(cb)
-#define ast_test_status_update(a,b)
+#define ast_test_status_update(a,b,c...)
 
 #endif
 




More information about the svn-commits mailing list