From ce2f213b16afb4965a4b3d0b1aab1640f041c26d Mon Sep 17 00:00:00 2001 From: Michał Łyszczek Date: Sat, 3 Feb 2018 07:21:10 +0100 Subject: fix: broken tests with --disable-threads --- rb/tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rb/tests.c b/rb/tests.c index 275c5fd..91b46b7 100644 --- a/rb/tests.c +++ b/rb/tests.c @@ -583,7 +583,11 @@ static void einval(void) mt_ferr(rb_discard(NULL, 1), EINVAL); mt_ferr(rb_count(NULL), EINVAL); mt_ferr(rb_space(NULL), EINVAL); +#if ENABLE_THREADS mt_ferr(rb_stop(NULL), EINVAL); +#else + mt_ferr(rb_stop(NULL), ENOSYS); +#endif rb_destroy(rb); } -- cgit v1.2.3-8-gadcc