From: Uwe Hermann Date: Fri, 3 Oct 2014 18:11:47 +0000 (+0200) Subject: unit tests: Fix build due to recent changes. X-Git-Tag: libsigrok-0.4.0~890 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=026d6b2ff616ca03a42286e7d7a9a33bce9bf053;p=libsigrok.git unit tests: Fix build due to recent changes. --- diff --git a/tests/check_input_binary.c b/tests/check_input_binary.c index 18567a0b..31ed69f3 100644 --- a/tests/check_input_binary.c +++ b/tests/check_input_binary.c @@ -207,7 +207,6 @@ static void check_buf(GHashTable *options, const uint8_t *buf, int check, fail_unless(in != NULL, "Failed to create input instance."); sdi = sr_input_dev_inst_get(in); - fail_unless(sdi != NULL, "Failed to get device instance."); sr_session_new(&session); sr_session_datafeed_callback_add(session, datafeed_in, NULL); @@ -215,9 +214,7 @@ static void check_buf(GHashTable *options, const uint8_t *buf, int check, ret = sr_input_send(in, gbuf); fail_unless(ret == SR_OK, "sr_input_send() error: %d", ret); - - ret = sr_input_free(in); - fail_unless(ret == SR_OK, "Failed to free input instance: %d", ret); + sr_input_free(in); sr_session_destroy(session);