Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/dev/sysmon Due to timing discrepancies desribed in PR ...



details:   https://anonhg.NetBSD.org/src/rev/e7b99ecb616c
branches:  trunk
changeset: 758172:e7b99ecb616c
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Oct 24 13:16:12 2010 +0000

description:
Due to timing discrepancies desribed in PR kern/43997, tickle the
watchdog just a little bit sooner.  This maintains the spirit of the
test while avoiding the actual bug.  This can be reverted once (if)
the PR is fixed.

diffstat:

 tests/dev/sysmon/t_swwdog.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 55c5a4bf996f -r e7b99ecb616c tests/dev/sysmon/t_swwdog.c
--- a/tests/dev/sysmon/t_swwdog.c       Sun Oct 24 13:11:41 2010 +0000
+++ b/tests/dev/sysmon/t_swwdog.c       Sun Oct 24 13:16:12 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_swwdog.c,v 1.3 2010/10/24 13:11:41 pgoyette Exp $    */
+/*     $NetBSD: t_swwdog.c,v 1.4 2010/10/24 13:16:12 pgoyette Exp $    */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -105,7 +105,7 @@
                if (rump_sys_ioctl(fd, WDOGIOC_SMODE, &wm) == -1)
                        atf_tc_fail_errno("failed to set tickle");
 
-               usleep(500000);
+               usleep(400000);
                if (max == 1)
                        rump_sys_ioctl(fd, WDOGIOC_TICKLE);
                else {



Home | Main Index | Thread Index | Old Index