[ccan] [PATCH 3/4] darray: test: only use darray_make_room() if we HAVE_STATEMENT_EXPR
Cody P Schafer
dev at codyps.com
Tue Jun 3 12:31:32 EST 2014
Signed-off-by: Cody P Schafer <dev at codyps.com>
---
ccan/darray/test/run.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ccan/darray/test/run.c b/ccan/darray/test/run.c
index 3d96fa5..b652948 100644
--- a/ccan/darray/test/run.c
+++ b/ccan/darray/test/run.c
@@ -38,7 +38,7 @@ int main(void) {
trace("Generating amalgams (internal)");
generateAmalgams();
- plan_tests(41);
+ plan_tests(38 + HAVE_STATEMENT_EXPR * 3);
testLits();
@@ -214,6 +214,7 @@ int main(void) {
}
reset(arr);
+#if HAVE_STATEMENT_EXPR
testing(darray_make_room);
{
for (i=0; i < ARRAY_SIZE(lotsOfStrings); i++) {
@@ -233,6 +234,7 @@ int main(void) {
ok1(!strcmp(str.item, amalgams.stringsF));
}
reset(str);
+#endif
testing(darray_appends, darray_prepends, darray_pop_check);
{
--
1.9.3
More information about the ccan
mailing list