unit tests: Fix build due to recent changes.
This commit is contained in:
parent
9092e66888
commit
026d6b2ff6
|
@ -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.");
|
fail_unless(in != NULL, "Failed to create input instance.");
|
||||||
|
|
||||||
sdi = sr_input_dev_inst_get(in);
|
sdi = sr_input_dev_inst_get(in);
|
||||||
fail_unless(sdi != NULL, "Failed to get device instance.");
|
|
||||||
|
|
||||||
sr_session_new(&session);
|
sr_session_new(&session);
|
||||||
sr_session_datafeed_callback_add(session, datafeed_in, NULL);
|
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);
|
ret = sr_input_send(in, gbuf);
|
||||||
fail_unless(ret == SR_OK, "sr_input_send() error: %d", ret);
|
fail_unless(ret == SR_OK, "sr_input_send() error: %d", ret);
|
||||||
|
sr_input_free(in);
|
||||||
ret = sr_input_free(in);
|
|
||||||
fail_unless(ret == SR_OK, "Failed to free input instance: %d", ret);
|
|
||||||
|
|
||||||
sr_session_destroy(session);
|
sr_session_destroy(session);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue