]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix assert hygiene in crypto tests
authorGreg Hudson <ghudson@mit.edu>
Fri, 4 Mar 2016 18:57:19 +0000 (13:57 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 9 Mar 2016 18:32:18 +0000 (13:32 -0500)
commitba1f3fb30810e08ee7768ad996b379db3a2d3fcd
tree23b61e9d282c839dd635718aad926abe4443ab42
parent5fd0c22926acd3b44075cb06444b55a7b2b00bfb
Fix assert hygiene in crypto tests

assert() should not be used with expressions with side-effects, as it
can be compiled out with the NDEBUG flag.  Fix all uses of
side-effecting asserts in lib/crypto test programs.
src/lib/crypto/crypto_tests/t_cf2.c
src/lib/crypto/crypto_tests/t_cksums.c
src/lib/crypto/crypto_tests/t_cmac.c
src/lib/crypto/crypto_tests/t_decrypt.c
src/lib/crypto/crypto_tests/t_derive.c
src/lib/crypto/crypto_tests/t_fork.c
src/lib/crypto/crypto_tests/t_kperf.c
src/lib/crypto/crypto_tests/t_prf.c
src/lib/crypto/crypto_tests/t_prng.c
src/lib/crypto/crypto_tests/t_str2key.c