[asterisk-commits] mmichelson: trunk r377906 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 11 16:42:14 CST 2012


Author: mmichelson
Date: Tue Dec 11 16:42:11 2012
New Revision: 377906

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377906
Log:
Add test events necessary for bridging tests to be able to properly run.


Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=377906&r1=377905&r2=377906
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Tue Dec 11 16:42:11 2012
@@ -3616,6 +3616,10 @@
 				res = AST_FEATURE_RETURN_SUCCESS; /* We found something */
 			} else if (operation == FEATURE_INTERPRET_DO) {
 				res = builtin_features[x].operation(chan, peer, config, code, sense, NULL);
+				ast_test_suite_event_notify("FEATURE_DETECTION",
+						"Result: success\r\n"
+						"Feature: %s",
+						builtin_features[x].sname);
 			}
 			if (feature) {
 				memcpy(feature, &builtin_features[x], sizeof(*feature));
@@ -3628,6 +3632,12 @@
 			}
 		}
 	}
+
+	if (operation == FEATURE_INTERPRET_CHECK && x == FEATURES_COUNT) {
+		ast_test_suite_event_notify("FEATURE_DETECTION",
+				"Result: fail");
+	}
+
 	ast_rwlock_unlock(&features_lock);
 
 	if (ast_strlen_zero(dynamic_features_buf) || feature_detected) {




More information about the asterisk-commits mailing list