aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 19:25:17 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 19:25:17 +0200
commita294e93f9d643fdd6148266389c0a7e773afc2be (patch)
tree479dc3b5ca9f396eb9008919cce8a01c9d0e6c92
parentaa665d8820b7334e7b3964e4354a0cb7ae7f4bd3 (diff)
downloadpsmq-a294e93f9d643fdd6148266389c0a7e773afc2be.tar.gz
psmq-a294e93f9d643fdd6148266389c0a7e773afc2be.tar.bz2
psmq-a294e93f9d643fdd6148266389c0a7e773afc2be.zip
tst/psmqd.c: change mt_assert() to mt_fail()
When assert exits function there will be stray mqueue opened in the system which may fail future tests because of too many files opened Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/psmqd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tst/psmqd.c b/tst/psmqd.c
index d20cc4d..b1163b1 100644
--- a/tst/psmqd.c
+++ b/tst/psmqd.c
@@ -331,7 +331,7 @@ static void psmqd_create_max_client(void)
psmqt_gen_unique_queue_name_array(qname, PSMQ_MAX_CLIENTS, QNAME_LEN);
for (i = 0; i != PSMQ_MAX_CLIENTS; ++i)
- mt_assert(psmq_init(&psmq[i], gt_broker_name, qname[i], 10) == 0);
+ mt_fail(psmq_init(&psmq[i], gt_broker_name, qname[i], 10) == 0);
for (i = 0; i != PSMQ_MAX_CLIENTS; ++i)
{