unit tests: Fix build due to recent changes.

This commit is contained in:
Uwe Hermann 2014-10-03 20:11:47 +02:00
parent 9092e66888
commit 026d6b2ff6
1 changed files with 1 additions and 4 deletions

View File

@ -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);