[svn-commits] jbigelow: branch certified-11.2 r402274 - in /certified/branches/11.2: ./ main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Oct 30 16:01:53 CDT 2013


Author: jbigelow
Date: Wed Oct 30 16:01:50 2013
New Revision: 402274

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402274
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/
........

Merged revisions 396884 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    certified/branches/11.2/   (props changed)
    certified/branches/11.2/main/features.c

Propchange: certified/branches/11.2/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: certified/branches/11.2/main/features.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/11.2/main/features.c?view=diff&rev=402274&r1=402273&r2=402274
==============================================================================
--- certified/branches/11.2/main/features.c (original)
+++ certified/branches/11.2/main/features.c Wed Oct 30 16:01:50 2013
@@ -3607,6 +3607,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));
@@ -3619,6 +3623,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 svn-commits mailing list