]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-watchdog: set timeout to 2 seconds by default 22031/head
authorMike Gilbert <floppym@gentoo.org>
Thu, 6 Jan 2022 19:12:33 +0000 (14:12 -0500)
committerMike Gilbert <floppym@gentoo.org>
Thu, 6 Jan 2022 19:12:33 +0000 (14:12 -0500)
Some hardware/drivers do not handle a 1 second timeout properly.

Fixes: https://github.com/systemd/systemd/issues/22001
src/test/test-watchdog.c

index 78151beff65a8c40e9c56c65a6f7784bad1b0f84..2b6d5b5b6195f4e679bf71a8e03cda737d19bc16 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[]) {
 
         slow = slow_tests_enabled();
 
-        t = slow ? 10 * USEC_PER_SEC : 1 * USEC_PER_SEC;
+        t = slow ? 10 * USEC_PER_SEC : 2 * USEC_PER_SEC;
         count = slow ? 5 : 3;
 
         r = watchdog_setup(t);