summaryrefslogtreecommitdiff
path: root/tests/dev
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2016-01-07 16:10:49 +0000
committerjakllsch <jakllsch@NetBSD.org>2016-01-07 16:10:49 +0000
commit1fd2ced04f66bbe9f5daeb1cca14a47759989f72 (patch)
tree57246c16c559e2da7267cab7718daf4a8f617d7c /tests/dev
parent3df1fc74b561f0c6683ca15f47cccc394227a3a9 (diff)
Don't crash when the device's HID Report Descriptor Pops from an empty stack.
Diffstat (limited to 'tests/dev')
-rw-r--r--tests/dev/usb/t_hid.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dev/usb/t_hid.c b/tests/dev/usb/t_hid.c
index a50486ea52a..da62e88b543 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.2 2016/01/07 15:58:23 jakllsch Exp $ */
+/* $NetBSD: t_hid.c,v 1.3 2016/01/07 16:10:49 jakllsch Exp $ */
/*
* Copyright (c) 2016 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_hid.c,v 1.2 2016/01/07 15:58:23 jakllsch Exp $");
+__RCSID("$NetBSD: t_hid.c,v 1.3 2016/01/07 16:10:49 jakllsch Exp $");
#include <machine/types.h>
#include <stdlib.h>
@@ -214,8 +214,6 @@ ATF_TC_BODY(khid_parse_just_pop, tc)
struct hid_data *hdp;
struct hid_item hi;
- atf_tc_expect_fail("Pop crashes on empty stack.");
-
hdp = hid_start_parse(just_pop_report_descriptor,
sizeof just_pop_report_descriptor, hid_none);
while (hid_get_item(hdp, &hi) > 0) {