mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 10:30:40 +01:00
testbench: Enhanced error detection in imrelp-tls-cfgcmd.sh
This solves test failures on some platforms like solaris. Also added _attribute__((unused)) into SetTlsVerifyDepth in nsd_ptcp.c to fix compiler errors with gcc9. closes: https://github.com/rsyslog/rsyslog/issues/4544
This commit is contained in:
parent
003ae3bc2a
commit
b0b6320c2a
@ -188,7 +188,7 @@ finalize_it:
|
|||||||
static rsRetVal
|
static rsRetVal
|
||||||
SetTlsVerifyDepth(nsd_t __attribute__((unused)) *pNsd, int verifyDepth)
|
SetTlsVerifyDepth(nsd_t __attribute__((unused)) *pNsd, int verifyDepth)
|
||||||
{
|
{
|
||||||
nsd_ptcp_t *pThis = (nsd_ptcp_t*) pNsd;
|
nsd_ptcp_t __attribute__((unused)) *pThis = (nsd_ptcp_t*) pNsd;
|
||||||
DEFiRet;
|
DEFiRet;
|
||||||
ISOBJ_TYPE_assert((pThis), nsd_ptcp);
|
ISOBJ_TYPE_assert((pThis), nsd_ptcp);
|
||||||
if (verifyDepth == 0) {
|
if (verifyDepth == 0) {
|
||||||
|
|||||||
@ -50,9 +50,8 @@ if [ $ret == 0 ]; then
|
|||||||
echo "SKIP: OpenSSL Version too old"
|
echo "SKIP: OpenSSL Version too old"
|
||||||
skip_test
|
skip_test
|
||||||
else
|
else
|
||||||
# Kindly check for a failed session
|
# Check for a failed session - possible ecodes are 10031 and 10040
|
||||||
content_check "librelp: generic error: ecode 10031" $RSYSLOG_DEBUGLOG
|
content_check "librelp: generic error: ecode" $RSYSLOG_DEBUGLOG
|
||||||
# content_check "librelp: generic error: ecode 10031" ${RSYSLOG_DYNNAME}.tcpflood
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit_test
|
exit_test
|
||||||
Loading…
x
Reference in New Issue
Block a user