aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 21:26:37 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-05-18 21:26:37 +0200
commit4146b570417bbbdd73119610a0b877edccd10d71 (patch)
treea731487f2b4d1d4229982f298ccebbebc6b775a1
parentc94ef361924b8fa778a3ec5433cccd35fa12e9d7 (diff)
downloadpsmq-4146b570417bbbdd73119610a0b877edccd10d71.tar.gz
psmq-4146b570417bbbdd73119610a0b877edccd10d71.tar.bz2
psmq-4146b570417bbbdd73119610a0b877edccd10d71.zip
tst/psmq.c: ignore not working test on netbsd
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/psmq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tst/psmq.c b/tst/psmq.c
index be14e78..a5171a3 100644
--- a/tst/psmq.c
+++ b/tst/psmq.c
@@ -443,7 +443,12 @@ void psmq_test_group(void)
CHECK_ERR(psmq_timedreceive(&gt_pub_psmq, NULL, NULL, &tp), EINVAL);
CHECK_ERR(psmq_timedreceive(&gt_pub_psmq, &msg, NULL, NULL), EINVAL);
+#ifndef __NetBSD__
+ /* netbsd is supposed to return error here, but for some reasons
+ * it behaves as if we passed time = 0, and it returns immediately
+ * with ETIMEDOUT. Ignore this test on netbsd in that case */
CHECK_ERR(psmq_timedreceive(&gt_pub_psmq, &msg, NULL, &tp_inval), EINVAL);
+#endif
CHECK_ERR(psmq_timedreceive_ms(&gt_pub_psmq, NULL, NULL, 0), EINVAL);
CHECK_ERR(psmq_subscribe(&gt_pub_psmq, NULL), EINVAL);