#ifdef CLIENT_SUBNET
ecs_test();
#endif /* CLIENT_SUBNET */
+ if(log_get_lock()) {
+ lock_quick_destroy((lock_quick_type*)log_get_lock());
+ }
checklock_stop();
printf("%d checks ok.\n", testcount);
#ifdef HAVE_SSL
# self-test (unit test of testbound)
if test $do_valgrind = "yes"; then
+ echo "valgrind yes"
+ echo
if (valgrind $VALGRIND_FLAGS $PRE/testbound -s >tmpout 2>&1;); then
echo "selftest OK "
else
echo "selftest FAILED"
exit 1
fi
- if grep "All heap blocks were freed -- no leaks are possible" tmpout >/dev/null 2>&1; then
+ if grep "All heap blocks were freed -- no leaks are possible" tmpout; then
: # clean
else
cat tmpout
grep "in use at exit" tmpout
exit 1
fi
- if grep "ERROR SUMMARY: 0 errors from 0 contexts" tmpout >/dev/null 2>&1; then
+ if grep "ERROR SUMMARY: 0 errors from 0 contexts" tmpout; then
: # clean
else
cat tmpout
fi
if test $do_valgrind = "yes"; then
+ echo
if (valgrind $VALGRIND_FLAGS $PRE/testbound -p $input >tmpout 2>&1;); then
echo " OK $cleaninput: $header"
else
echo "FAILED $cleaninput: $header"
exitval=1
fi
- if grep "All heap blocks were freed -- no leaks are possible" tmpout >/dev/null 2>&1; then
+ if grep "All heap blocks were freed -- no leaks are possible" tmpout; then
: # clean
else
grep "^==" tmpout
grep "in use at exit" tmpout
exitval=1
fi
- if grep "ERROR SUMMARY: 0 errors from 0 contexts" tmpout >/dev/null 2>&1; then
+ if grep "ERROR SUMMARY: 0 errors from 0 contexts" tmpout; then
: # clean
else
grep "^==" tmpout