X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Finput_binary.c;h=bef604172e06440038123f4ead8934b13c184e4b;hb=f54a55da2dc6b60b0ba153bc61e44415f5ed2004;hp=403f7307a2de33936cc3faa251b8dba3f68476a2;hpb=1a46cc62e2b528bcaeb1f8dc0c952a81b3bcba5c;p=libsigrok.git
diff --git a/tests/input_binary.c b/tests/input_binary.c
index 403f7307..bef60417 100644
--- a/tests/input_binary.c
+++ b/tests/input_binary.c
@@ -14,13 +14,13 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
+#include
#include
#include
-#include "../include/libsigrok/libsigrok.h"
+#include
#include "lib.h"
#define BUFSIZE (1000 * 1000)
@@ -208,7 +208,7 @@ static void check_buf(GHashTable *options, const uint8_t *buf, int check,
sdi = sr_input_dev_inst_get(in);
- sr_session_new(&session);
+ sr_session_new(srtest_ctx, &session);
sr_session_datafeed_callback_add(session, datafeed_in, NULL);
sr_session_dev_add(session, sdi);