X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Finput_binary.c;h=bef604172e06440038123f4ead8934b13c184e4b;hb=1296bb5362292e4924a41e79c3d24bb5571517c6;hp=31ed69f327e4ce1391511b5c485ed8db068e04db;hpb=02a2bf688f25a50ea05276be75fba8b4f644fca6;p=libsigrok.git
diff --git a/tests/input_binary.c b/tests/input_binary.c
index 31ed69f3..bef60417 100644
--- a/tests/input_binary.c
+++ b/tests/input_binary.c
@@ -14,16 +14,16 @@
* 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 1000000
+#define BUFSIZE (1000 * 1000)
enum {
CHECK_ALL_LOW,
@@ -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);