summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2019-05-26 12:34:16 (GMT)
committerJoachim Nilsson <troglobit@gmail.com>2019-05-26 12:34:16 (GMT)
commitd49fed819e6183e71d0fba7518234083ca32bf00 (patch)
tree8d3cbbe5561558082f352cc0665ee994618a2d38
parent3bc04e43401b15b0841492a7e6b6e4a3928eddbd (diff)
watchdogctl: Minor, document the various tests (comments only)
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r--src/watchdogctl.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/watchdogctl.c b/src/watchdogctl.c
index d0de97c..d707985 100644
--- a/src/watchdogctl.c
+++ b/src/watchdogctl.c
@@ -299,29 +299,54 @@ static int run_test(char *arg)
switch (op) {
case 200:
+ /*
+ * Simple subscribe, kick, and unsubscribe cycle
+ */
return testit();
case 201:
+ /*
+ * Longer test, temporarily disables watchdogd
+ * then re-enables it, and finally unsubscribes
+ */
disable_enable = 1;
return testit();
case 202:
+ /*
+ * Verifies bad ACK sequence in first kick
+ */
false_ack = 1;
return testit();
case 203:
+ /*
+ * Verifies bad ACK sequence in unsubscribe
+ */
false_unsubscribe = 1;
return testit();
case 204:
+ /*
+ * Verifies bad ACK sequence in second kick
+ */
failed_kick = 1;
return testit();
case 205:
+ /*
+ * Verifies missing kick
+ */
no_kick = 1;
return testit();
case 206:
+ /*
+ * With a timeout of 2 sec we normally respond
+ * once every sec. With this we do a slightly
+ * longer response, 1.5 sec, to verify watchdogd
+ * does not trigger prematurely.
+ */
premature = 1;
return testit();
}