loci: rename ASSERT to LOCI_ASSERT
This was polluting the namespace.
diff --git a/c_gen/templates/locitest/test_list_limits.c b/c_gen/templates/locitest/test_list_limits.c
index d8368ff..68ead8f 100644
--- a/c_gen/templates/locitest/test_list_limits.c
+++ b/c_gen/templates/locitest/test_list_limits.c
@@ -44,19 +44,19 @@
of_flow_stats_reply_entries_bind(obj, &list);
- ASSERT(element != NULL);
+ LOCI_ASSERT(element != NULL);
while (1) {
int rv = of_list_flow_stats_entry_append(&list, element);
- ASSERT(rv == OF_ERROR_NONE || rv == OF_ERROR_RESOURCE);
+ LOCI_ASSERT(rv == OF_ERROR_NONE || rv == OF_ERROR_RESOURCE);
if (rv != OF_ERROR_NONE) {
break;
}
i++;
}
- ASSERT(i == 744);
+ LOCI_ASSERT(i == 744);
of_flow_stats_entry_delete(element);
of_flow_stats_reply_delete(obj);
@@ -77,14 +77,14 @@
int rv;
of_flow_stats_entry_init(&element, OF_VERSION_1_0, -1, 1);
rv = of_list_flow_stats_entry_append_bind(&list, &element);
- ASSERT(rv == OF_ERROR_NONE || rv == OF_ERROR_RESOURCE);
+ LOCI_ASSERT(rv == OF_ERROR_NONE || rv == OF_ERROR_RESOURCE);
if (rv != OF_ERROR_NONE) {
break;
}
i++;
}
- ASSERT(i == 744);
+ LOCI_ASSERT(i == 744);
of_flow_stats_reply_delete(obj);
return TEST_PASS;
diff --git a/c_gen/templates/locitest/unittest.h b/c_gen/templates/locitest/unittest.h
index c897d67..06568d3 100644
--- a/c_gen/templates/locitest/unittest.h
+++ b/c_gen/templates/locitest/unittest.h
@@ -41,9 +41,9 @@
} while (0)
#define TEST_ASSERT(result) if (!(result)) do { \
- fprintf(stderr, "\nTEST ASSERT FAILURE " \
+ fprintf(stderr, "\nTEST LOCI_ASSERT FAILURE " \
#result " :: %s:%d\n",__FILE__,__LINE__); \
- ASSERT(0); \
+ LOCI_ASSERT(0); \
return TEST_FAIL; \
} while (0)