Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libpthread Re-enable the QEMU specific timing limi...



details:   https://anonhg.NetBSD.org/src/rev/9275c73da736
branches:  trunk
changeset: 964667:9275c73da736
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Aug 11 11:42:23 2019 +0000

description:
Re-enable the QEMU specific timing limits, but only an increased upper
limit for now - let's see if that works on the test-bed.

diffstat:

 tests/lib/libpthread/t_condwait.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r c09da0b78246 -r 9275c73da736 tests/lib/libpthread/t_condwait.c
--- a/tests/lib/libpthread/t_condwait.c Sun Aug 11 11:17:35 2019 +0000
+++ b/tests/lib/libpthread/t_condwait.c Sun Aug 11 11:42:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_condwait.c,v 1.7 2019/08/10 07:36:15 martin Exp $ */
+/* $NetBSD: t_condwait.c,v 1.8 2019/08/11 11:42:23 martin Exp $ */
 
 /*
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_condwait.c,v 1.7 2019/08/10 07:36:15 martin Exp $");
+__RCSID("$NetBSD: t_condwait.c,v 1.8 2019/08/11 11:42:23 martin Exp $");
 
 #include <sys/time.h>
 #include <errno.h>
@@ -87,12 +87,12 @@
                }
                twmin.tv_sec = WAITTIME;
                twmin.tv_nsec = 0;
-               if (0 /* XXX */ && isQEMU()) {
+               if (isQEMU()) {
                        struct timespec td, t;
-                       td.tv_sec = 0;
-                       td.tv_nsec = 900000000;
+                       // td.tv_sec = 0;
+                       // td.tv_nsec = 900000000;
                        t = twmin;
-                       timespecsub(&t, &td, &twmin);
+                       // timespecsub(&t, &td, &twmin);
                        td.tv_sec = 2;
                        td.tv_nsec = 500000000;
                        timespecadd(&t, &td, &twmax);



Home | Main Index | Thread Index | Old Index