[asterisk-commits] jbigelow: branch 11 r396884 - /branches/11/main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 16 17:45:15 CDT 2013
Author: jbigelow
Date: Fri Aug 16 17:45:10 2013
New Revision: 396884
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396884
Log:
Add test suite events to indicate when a feature is detected or not
These are needed by the bridge test suite tests for them to be able to run
against Asterisk 11.
Review: https://reviewboard.asterisk.org/r/2751/
Modified:
branches/11/main/features.c
Modified: branches/11/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/features.c?view=diff&rev=396884&r1=396883&r2=396884
==============================================================================
--- branches/11/main/features.c (original)
+++ branches/11/main/features.c Fri Aug 16 17:45:10 2013
@@ -3613,6 +3613,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));
@@ -3625,6 +3629,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