]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/test/test-watchdog.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
10 int main(int argc
, char *argv
[]) {
16 test_setup_logging(LOG_DEBUG
);
18 slow
= slow_tests_enabled();
20 t
= slow
? 10 * USEC_PER_SEC
: 1 * USEC_PER_SEC
;
23 r
= watchdog_set_timeout(&t
);
25 log_warning_errno(r
, "Failed to open watchdog: %m");
29 for (i
= 0; i
< count
; i
++) {
30 log_info("Pinging...");
33 log_warning_errno(r
, "Failed to ping watchdog: %m");