From 70c7d4160dfb9b710e4bf93d3d6265dce8b0392f Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Feb 2017 13:59:14 +0100 Subject: Use value_string for ctrl_type Use value_string for enum ctrl_type instead of custom code. Add corresponding unit tests. Related: OS#1615 Change-Id: Icd4e96dd9f00876cb70b43cfcf42ab4f10311b28 --- tests/ctrl/ctrl_test.ok | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ctrl/ctrl_test.ok (limited to 'tests/ctrl/ctrl_test.ok') diff --git a/tests/ctrl/ctrl_test.ok b/tests/ctrl/ctrl_test.ok new file mode 100644 index 00000000..c4b05e9a --- /dev/null +++ b/tests/ctrl/ctrl_test.ok @@ -0,0 +1,9 @@ +Checking ctrl types... +ctrl type 0 is unknown 0x0 [PARSE FAILED] +ctrl type 1 is GET -> 1 OK +ctrl type 2 is SET -> 2 OK +ctrl type 3 is GET_REPLY -> 3 OK +ctrl type 4 is SET_REPLY -> 4 OK +ctrl type 5 is TRAP -> 5 OK +ctrl type 6 is ERROR -> 6 OK +ctrl type 64 is unknown 0x40 [PARSE FAILED] -- cgit v1.2.3