]> jfr.im git - irc/rizon/plexus4.git/commitdiff
test: don't put conditions we always want evaluated in assert
authorAdam <redacted>
Sun, 18 Sep 2016 02:12:30 +0000 (22:12 -0400)
committerAdam <redacted>
Sun, 18 Sep 2016 02:12:30 +0000 (22:12 -0400)
test/client.c

index ee41f809b7d48d8730048ca598a4c8c692b350ec..944030e7d99070c7ec3c781673d0ba01aaa8585d 100644 (file)
@@ -46,7 +46,7 @@ client_create_ip(const char *name, const char *ip)
   hint.ai_family = PF_UNSPEC;
   hint.ai_flags = AI_NUMERICHOST;
 
-  assert(!getaddrinfo(ip, NULL, &hint, &res));
+  ck_assert(!getaddrinfo(ip, NULL, &hint, &res));
   assert(res->ai_family == AF_INET || res->ai_family == AF_INET6);
 
   memset(&u, 0, sizeof(u));