[ccan] [PATCH 7/9] darray: test: only use darray_make_room() if we HAVE_STATEMENT_EXPR
Cody P Schafer
dev at codyps.com
Sat Jun 21 10:46:05 EST 2014
CC: Joseph Adams <joeyadams3.14159 at gmail.com>
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);
{
--
2.0.0
More information about the ccan
mailing list