NetBSD Problem Report #54440

From www@netbsd.org  Mon Aug  5 23:10:22 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 959CF7A169
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Aug 2019 23:10:22 +0000 (UTC)
Message-Id: <20190805231021.B73077A1D3@mollari.NetBSD.org>
Date: Mon,  5 Aug 2019 23:10:21 +0000 (UTC)
From: eric@vangyzen.net
Reply-To: eric@vangyzen.net
To: gnats-bugs@NetBSD.org
Subject: Relax time constraint in pthread_cond_timedwait unit test
X-Send-Pr-Version: www-1.0

>Number:         54440
>Category:       lib
>Synopsis:       Relax time constraint in pthread_cond_timedwait unit test
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    martin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 05 23:15:00 +0000 2019
>Last-Modified:  Sat Aug 10 07:40:01 +0000 2019
>Originator:     Eric van Gyzen
>Release:        
>Organization:
>Environment:
>Description:
You might want to import this commit from FreeBSD:

https://svnweb.freebsd.org/base?view=revision&revision=350620

The commit log explains the problem.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Wed, 07 Aug 2019 10:45:06 +0000
Responsible-Changed-Why:
take


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54440 CVS commit: src/tests/lib/libpthread
Date: Sat, 10 Aug 2019 07:36:15 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sat Aug 10 07:36:15 UTC 2019

 Modified Files:
 	src/tests/lib/libpthread: t_condwait.c

 Log Message:
 PR lib/54440: adapt the FreeBSD change to this test and calculate time
 differences more exact, allowing between 0 and 1 s delay between the
 expected wakeup and the actual event happening.
 Also convert the QEMU special case code to the same scheme, but for now
 disable it (with XXX mark) and see if the proper timing limits fix that
 case too.
 If not, we will re-enable the QEMU special case.


 To generate a diff of this commit:
 cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libpthread/t_condwait.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.