[asterisk-commits] eliel: branch group/data_api_gsoc2009 r205768 - /team/group/data_api_gsoc2009...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 10 09:34:49 CDT 2009


Author: eliel
Date: Fri Jul 10 09:34:45 2009
New Revision: 205768

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=205768
Log:
Use ast_data_search_cmp instead of ast_data_search_cmp_##type


Modified:
    team/group/data_api_gsoc2009/tests/test_data.c

Modified: team/group/data_api_gsoc2009/tests/test_data.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/tests/test_data.c?view=diff&rev=205768&r1=205767&r2=205768
==============================================================================
--- team/group/data_api_gsoc2009/tests/test_data.c (original)
+++ team/group/data_api_gsoc2009/tests/test_data.c Fri Jul 10 09:34:45 2009
@@ -44,19 +44,19 @@
 {
 	struct ast_data *res, *internal;
 
-	if (ast_data_search_cmp_sint(search, "root_test/data1", 10)) {
+	if (ast_data_search_cmp(search, "root_test/data1", 10)) {
 		ast_log(LOG_ERROR, "root_test/data1 doesn't match\n");
 	} else {
 		ast_log(LOG_ERROR, "root_test/data1 match!\n");
 	}
 
-	if (ast_data_search_cmp_sint(search, "root_test/data2", 20)) {
+	if (ast_data_search_cmp(search, "root_test/data2", 20)) {
 		ast_log(LOG_ERROR, "root_test/data2 doesn't match\n");
 	} else {
 		ast_log(LOG_ERROR, "root_test/data2 match!\n");
 	}
 
-	if (ast_data_search_cmp_string(search, "root_test/name", "eliel")) {
+	if (ast_data_search_cmp(search, "root_test/name", "eliel")) {
 		ast_log(LOG_ERROR, "root_test/data2 doesn't match\n");
 	} else {
 		ast_log(LOG_ERROR, "root_test/data2 match!\n");
@@ -214,8 +214,7 @@
 	FILE *outfile;
 	struct ast_data_query query = {
 		.version = AST_DATA_QUERY_VERSION,
-		.path = "test/node1/node11/node111",
-		.search = "node111/root_test/data1<20"
+		.path = "asterisk",
 	};
 
 	switch (cmd) {




More information about the asterisk-commits mailing list