From aede01d6ac33077378eb3260c484dacae6d54fd1 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Tue, 22 Oct 2024 16:41:15 +0100 Subject: [PATCH] Add another test case. --- src/deviceid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/deviceid.c b/src/deviceid.c index 3a4562d..036c7b0 100644 --- a/src/deviceid.c +++ b/src/deviceid.c @@ -135,6 +135,10 @@ int main (int argc, char *argv[]) assert (strcmp(comment_out, "Comment") == 0); assert (strcmp(device, "UNKNOWN vendor/model") == 0); + deviceid_decode_mice ("", comment_out, sizeof(comment_out), device, sizeof(device)); + dw_printf ("%s %s\n", comment_out, device); + assert (strcmp(comment_out, "") == 0); + assert (strcmp(device, "UNKNOWN vendor/model") == 0); // Tocall