X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Finput_binary.c;h=282bc46fd60f059eca0dfff3d92d805997e2c972;hb=6ed709fecd14e6f122ee1ea18fc15abb4b3c8580;hp=31ed69f327e4ce1391511b5c485ed8db068e04db;hpb=02a2bf688f25a50ea05276be75fba8b4f644fca6;p=libsigrok.git diff --git a/tests/input_binary.c b/tests/input_binary.c index 31ed69f3..282bc46f 100644 --- a/tests/input_binary.c +++ b/tests/input_binary.c @@ -18,12 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include -#include "../include/libsigrok/libsigrok.h" +#include #include "lib.h" -#define BUFSIZE 1000000 +#define BUFSIZE (1000 * 1000) enum { CHECK_ALL_LOW, @@ -208,7 +209,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);