Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libusbhid Move MY*_ATF_CHECK_EQ debugging helper m...
details: https://anonhg.NetBSD.org/src/rev/4968ecb2e914
branches: trunk
changeset: 342647:4968ecb2e914
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jan 03 15:16:10 2016 +0000
description:
Move MY*_ATF_CHECK_EQ debugging helper macros to before all functions.
diffstat:
tests/lib/libusbhid/t_usbhid.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (57 lines):
diff -r f0a83820bc4a -r 4968ecb2e914 tests/lib/libusbhid/t_usbhid.c
--- a/tests/lib/libusbhid/t_usbhid.c Sun Jan 03 08:44:59 2016 +0000
+++ b/tests/lib/libusbhid/t_usbhid.c Sun Jan 03 15:16:10 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_usbhid.c,v 1.6 2016/01/02 01:24:44 jakllsch Exp $ */
+/* $NetBSD: t_usbhid.c,v 1.7 2016/01/03 15:16:10 jakllsch Exp $ */
/*
* Copyright (c) 2016 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_usbhid.c,v 1.6 2016/01/02 01:24:44 jakllsch Exp $");
+__RCSID("$NetBSD: t_usbhid.c,v 1.7 2016/01/03 15:16:10 jakllsch Exp $");
#include <atf-c.h>
@@ -46,6 +46,15 @@
ATF_TC(check_hid_get_data);
ATF_TC(check_hid_set_data);
+#define MYd_ATF_CHECK_EQ(d, v) \
+ ATF_CHECK_EQ_MSG(d, v, "== %d", (d))
+
+#define MYu_ATF_CHECK_EQ(d, v) \
+ ATF_CHECK_EQ_MSG(d, v, "== %u", (d))
+
+#define MYx_ATF_CHECK_EQ(d, v) \
+ ATF_CHECK_EQ_MSG(d, v, "== 0x%x", (d))
+
static const uint8_t range_test_report_descriptor[] = {
0x0b, 0x03, 0x00, 0x00, 0xff, // Usage
0x75, 0x20, // Report Size
@@ -158,9 +167,6 @@
atf_tc_set_md_var(tc, "descr", "Test libusbhid usage.c");
}
-#define MYx_ATF_CHECK_EQ(d, v) \
- ATF_CHECK_EQ_MSG(d, v, "== %x", (d))
-
ATF_TC_BODY(check_hid_usage, tc)
{
char usages_path[PATH_MAX];
@@ -202,12 +208,6 @@
0xff2aff1b);
}
-#define MYd_ATF_CHECK_EQ(d, v) \
- ATF_CHECK_EQ_MSG(d, v, "== %d", (d))
-
-#define MYu_ATF_CHECK_EQ(d, v) \
- ATF_CHECK_EQ_MSG(d, v, "== %u", (d))
-
ATF_TC_HEAD(check_hid_logical_range, tc)
{
Home |
Main Index |
Thread Index |
Old Index