#!/usr/bin/env ksh
#
# Verify that the fifos are empty and exit with a zero status if no errors else an error count that
# doesn't overflow what can safely be represented in the exit status.
#
empty_fifos
# shellcheck disable=SC2154
if (( error_count != 0 ))
then
    # shellcheck disable=SC2154
    'log_warning' $(( start_of_test_lineno - 1 )) "error_count = $error_count"
    exit $(( error_count < 50 ? error_count : 50 ))
fi
exit 0
