summaryrefslogtreecommitdiff
path: root/tests/dev
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2016-05-02 17:24:06 +0000
committerjakllsch <jakllsch@NetBSD.org>2016-05-02 17:24:06 +0000
commitcf102be5ef8f1cc916f1227f093dd04f470cfbe9 (patch)
treed608a63f9b1e22c580ac5e3c28d05e8c7a6b9377 /tests/dev
parent3f4b78a3a769057050b1fc9db9e7770715cb543c (diff)
Call rump_init() before using rump functionality.
This change should make these test cases consistently fail on all ports. Related to PR kern/51096.
Diffstat (limited to 'tests/dev')
-rw-r--r--tests/dev/usb/t_hid.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/dev/usb/t_hid.c b/tests/dev/usb/t_hid.c
index f3f002f2f25..95cb1f857f1 100644
--- a/tests/dev/usb/t_hid.c
+++ b/tests/dev/usb/t_hid.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_hid.c,v 1.5 2016/01/09 14:31:19 jakllsch Exp $ */
+/* $NetBSD: t_hid.c,v 1.6 2016/05/02 17:24:06 jakllsch Exp $ */
/*
* Copyright (c) 2016 Jonathan A. Kollasch
@@ -27,13 +27,16 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_hid.c,v 1.5 2016/01/09 14:31:19 jakllsch Exp $");
+__RCSID("$NetBSD: t_hid.c,v 1.6 2016/05/02 17:24:06 jakllsch Exp $");
#include <machine/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <atf-c.h>
+
+#include <rump/rump.h>
+
#define hid_start_parse rumpns_hid_start_parse
#define hid_end_parse rumpns_hid_end_parse
#define hid_get_item rumpns_hid_get_item
@@ -104,6 +107,8 @@ ATF_TC_BODY(khid, tc)
uhidevdebug = 0;
+ rump_init();
+
ret = locate_item(range_test_report_descriptor,
sizeof(range_test_report_descriptor), 0xff000003, 0, hid_input,
&hi);
@@ -234,6 +239,8 @@ ATF_TC_BODY(khid_parse_just_pop, tc)
struct hid_data *hdp;
struct hid_item hi;
+ rump_init();
+
hdp = hid_start_parse(just_pop_report_descriptor,
sizeof just_pop_report_descriptor, hid_none);
while (hid_get_item(hdp, &hi) > 0) {