X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrmap%2Ftest%2Frun-order.c;h=68062eab0f9583a8aa2cd7bea26735ef14809214;hp=417a7406b537a173d3b5b99701c60505e2bcc94b;hb=6abc867fce8c3eba40eb26092d31e34b47dd9165;hpb=20f3b260313fb4d5566aeb0d0c5439574e914e2d diff --git a/ccan/strmap/test/run-order.c b/ccan/strmap/test/run-order.c index 417a7406..68062eab 100644 --- a/ccan/strmap/test/run-order.c +++ b/ccan/strmap/test/run-order.c @@ -11,7 +11,7 @@ static bool in_order(const char *member, char *value, unsigned int *count) ok1(i == atoi(value)); ok1(*count == i); (*count)++; - return false; + return true; } static bool in_order_by_2(const char *member, char *value, unsigned int *count) @@ -20,7 +20,7 @@ static bool in_order_by_2(const char *member, char *value, unsigned int *count) ok1(i == atoi(value)); ok1(*count == i); (*count) += 2; - return false; + return true; } static bool dump(const char *member, char *value, bool *ok) @@ -28,7 +28,7 @@ static bool dump(const char *member, char *value, bool *ok) diag("%s=>%s", member, value); if (value != member + 1) *ok = false; - return false; + return true; } int main(void)