Removes side effects from asserts in tests/
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 1 Mar 2013 21:39:31 +0000 (13:39 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 1 Mar 2013 21:39:31 +0000 (13:39 -0800)
commit6b37a78365db049f5dd2b8c31792fd254a24f35f
treeaf43e24bc4f23988fea322d29bebcff14553785a
parent009982054197ee0444b52f612b68cb191d896245
Removes side effects from asserts in tests/

We shouldn't have necessary work happen inside assert(), in case we
optimize it later.

Plus we now have potential error messages when pthread_create fails, if
errno was set properly, which it isn't yet.  That's something we need to
fix in pthread code, instead of printing profanities.
tests/dtls_test.c
tests/pthread_test.c