From 7883754015815be0be6df492000bb38d138548a6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 25 Oct 2013 17:30:12 +0200 Subject: [PATCH] channel_test: Updated timeout check according to latest changes. I.e. check errno rather than the return value. --- t/utils/channel_test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t/utils/channel_test.c b/t/utils/channel_test.c index 20fd454..02ed172 100644 --- a/t/utils/channel_test.c +++ b/t/utils/channel_test.c @@ -155,10 +155,13 @@ START_TEST(test_select) chan = sdb_channel_create(0, 1); + errno = 0; check = sdb_channel_select(chan, &data, NULL, NULL, NULL, &ts); - fail_unless(check == ETIMEDOUT, - "sdb_channel_select() = %i; expected: %i (ETIMEDOUT)", - check, ETIMEDOUT); + fail_unless(check < ETIMEDOUT, + "sdb_channel_select() = %i; expected: <0", check); + fail_unless(errno == ETIMEDOUT, + "sdb_channel_select() set errno to %i; expected: %i (ETIMEDOUT)", + errno, ETIMEDOUT); check = sdb_channel_select(chan, NULL, NULL, &data, NULL, NULL); fail_unless(! check, "sdb_channel_select() = %i; expected: 0", check); -- 2.30.2