From patchwork Thu Jul 11 13:17:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 1959335 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WKZyk4g7Tz1xpd for ; Thu, 11 Jul 2024 23:17:34 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 41F5F383E50A for ; Thu, 11 Jul 2024 13:17:31 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by sourceware.org (Postfix) with ESMTP id 6353C384A050 for ; Thu, 11 Jul 2024 13:17:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6353C384A050 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6353C384A050 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4190:8020::34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720703831; cv=none; b=cWzKppzMS+pkMGH+sjXZ5juFPRjUcQ78YY9BkPEaRKZsRTwWmaDovwWEVtev57DLqFSxSQyS1p1eXyL/qc5hlYJzRuR/8kxRkTqCdVxCOb4r5SR0+1ViVY20ZajqcP6tcfmOYy33h17zjBX8qF/7oTpg39JU7rMUY9HGkoX9vrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720703831; c=relaxed/simple; bh=KMhlfUPM+Xx6dExXvZ7dDCQd+Db/46qJNiF635JjZp8=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=gtIcjXzU0HvgRXF5eDFPqRmqG741eicQCFLJjwIv2kb12RL9QQZwhJe2BRUgoE1umVQXm0ZfB0zrxgrzsXISzBIhfKnI2DvnzYGjK8wkxHPLA3Y77nduxCjy3brHdXmhw/+K3opVoGcPnb9OeAFI1MREUSrnVPFV+CoFaLO4OOc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by angie.orcam.me.uk (Postfix, from userid 500) id 26AEB92009C; Thu, 11 Jul 2024 15:17:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 204E192009B; Thu, 11 Jul 2024 14:17:09 +0100 (BST) Date: Thu, 11 Jul 2024 14:17:09 +0100 (BST) From: "Maciej W. Rozycki" To: libc-alpha@sourceware.org cc: "Maciej W. Rozycki" Subject: [PATCH 0/2] nptl: Fix issues with tst-sem11 and tst-sem12 tests Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Spam-Status: No, score=-3488.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Maciej W. Rozycki" Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org Hi, In the course of verifying changes for the BZ #27650 test case, posted separately, I have come across a couple of tests hanging forever that cause `mips-linux-gnu' (o32 ABI) testing to never complete unless the offending tests are killed by hand. This mini patch series addresses this issue for the tst-sem11 and tst-sem12 tests, by converting them to use the test driver. As there's also an issue with a missing copyright notice with these tests this is addressed with 1/2, followed by the actual code fix in 2/2. It is perhaps worth noting that these tests were committed along with tst-sem10, which hasn't suffered from either of these issues ever since the beginning. This has been verified with the `powerpc64le-linux-gnu' (IBM POWER9) native target and then the same host and the `riscv64-linux-gnu' (SiFive FU740) and `mips-linux-gnu' (o32 ABI) (MIPS 74Kf) targets. The tests still hang with the latter target, but they are killed automatically by the test driver and therefore fail gracefully. NB these tests also fail with the `alpha-linux-gnu' (DEC 21064A, EV45) target, but in this case they both segfault instead, so the failure is harmless to the remaining testing. I'll commit 1/2 as obviously correct unless I hear objections in the next couple of days. OK for 2/2 (either now or past the freeze period)? Maciej