Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/usb Use rump_schedule() before calling things in t...
details: https://anonhg.NetBSD.org/src/rev/f65130f49dee
branches: trunk
changeset: 345061:f65130f49dee
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu May 05 17:40:26 2016 +0000
description:
Use rump_schedule() before calling things in the rump context.
Hopefully fixes these tests on all ports.
diffstat:
tests/dev/usb/t_hid.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 28f8245a35ed -r f65130f49dee tests/dev/usb/t_hid.c
--- a/tests/dev/usb/t_hid.c Thu May 05 17:06:41 2016 +0000
+++ b/tests/dev/usb/t_hid.c Thu May 05 17:40:26 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_hid.c,v 1.7 2016/05/05 16:55:56 jakllsch Exp $ */
+/* $NetBSD: t_hid.c,v 1.8 2016/05/05 17:40:26 jakllsch Exp $ */
/*
* Copyright (c) 2016 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_hid.c,v 1.7 2016/05/05 16:55:56 jakllsch Exp $");
+__RCSID("$NetBSD: t_hid.c,v 1.8 2016/05/05 17:40:26 jakllsch Exp $");
#include <machine/types.h>
#include <stdlib.h>
@@ -105,12 +105,12 @@
int ret;
struct hid_item hi;
- atf_tc_expect_fail("test case does not use rump correctly");
-
uhidevdebug = 0;
rump_init();
+ rump_schedule();
+
ret = locate_item(range_test_report_descriptor,
sizeof(range_test_report_descriptor), 0xff000003, 0, hid_input,
&hi);
@@ -225,6 +225,8 @@
&hi.loc), 0xfe);
MYlx_ATF_CHECK_EQ(hid_get_udata(unsigned_range_test_maximum_report,
&hi.loc), 0xff);
+
+ rump_unschedule();
}
ATF_TC(khid_parse_just_pop);
@@ -241,15 +243,17 @@
struct hid_data *hdp;
struct hid_item hi;
- atf_tc_expect_fail("test case does not use rump correctly");
+ rump_init();
- rump_init();
+ rump_schedule();
hdp = hid_start_parse(just_pop_report_descriptor,
sizeof just_pop_report_descriptor, hid_none);
while (hid_get_item(hdp, &hi) > 0) {
}
hid_end_parse(hdp);
+
+ rump_unschedule();
}
ATF_TP_ADD_TCS(tp)
Home |
Main Index |
Thread Index |
Old Index