Received: by mail.netbsd.org (Postfix, from userid 605) id C145084DE7; Tue, 13 Mar 2018 14:54:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C84B084DCC for ; Tue, 13 Mar 2018 14:54:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id NuirwESmDGbF for ; Tue, 13 Mar 2018 14:54:13 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4BD2684C78 for ; Tue, 13 Mar 2018 14:54:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4506FFB40; Tue, 13 Mar 2018 14:54:13 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 13 Mar 2018 14:54:13 +0000 From: "Kamil Rytarowski" Subject: CVS commit: src/tests/lib/libc/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20180313145413.4506FFB40@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Kamil Rytarowski" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: kamil Date: Tue Mar 13 14:54:13 UTC 2018 Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: ATF: Add new test race1 in t_ptrace_wait* Reuse the attach1's test body for race1. Add a new test race1: Assert that await_zombie() in attach1 always finds a single process and no other error is reported race1 requires HAVE_PID in wait(2)-like function. This test is executed in a loop for 5 seconds (16k iterations on Intel i7). A buggy kernel was asserting an error within this timeframe almost always. The bug in the kernel is now gone and this test is expected to pass correctly. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.