Article View: linux.kernel.git
Article #1140[PATCH 0/2] Make our clar tests ignore the long-tests argument
From: Kaartic Sivaraam
Date: Thu, 22 Oct 2026 11:01
Date: Thu, 22 Oct 2026 11:01
67 lines
13393 bytes
13393 bytes
This is a small patch to fix a hiccup I hit while trying to run
our test using the following incantation:
$ meson test -v --test-args='-ilx'
...
Summary of Failures:
2/1063 unit-tests FAIL 0.16s (exit status 129 or signal 1 SIGHUP)
Ok: 1061
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 1
Timeout: 0
Full log written to /path/to/testlog.txt
On some exploration, we find the following which shows us what's wrong:
2/1063 unit-tests RUNNING
>>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=103 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /me/git-1/build/t/unit-tests -ilx
――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――
error: unknown switch `l'
usage: unit-test [<options>]
-i, --[no-]immediate immediately exit upon the first failed test
-r, --[no-]run suite[::test]
run only test suite or individual test <suite[::test]>
--[no-]exclude <suite>
exclude test suite <suite>
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
2/1063 unit-tests FAIL 0.01s (exit status 129 or signal 1 SIGHUP)
So, the '-l' switch that's passed to unit-tests is the problem.
On searching for how these were handled before, I stumbled across
9faf3963b6 (t: introduce compatibility options to clar-based tests,
2024-12-13) which handled this by adding such arguments as NOOP
arguments to t/unit-tests/unit-test.c. So, this patch does the same
to make unit-test ignore the '-l' passed to it.
The CI pipeline passes:
- GitHub: https://github.com/sivaraam/git/actions/runs/39756087806
(a couple of MacOS ones didn't run owing to the lack of a runner)
- GitLab: https://gitlab.com/gitlab-org/git/-/pipelines/2975804623
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
---
Kaartic Sivaraam (2):
unit-tests: reshuffle NOOP arguments to maintain order
unit-tests: ignore --long-tests
t/unit-tests/unit-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
${range_diff}
---
base-commit: 47fdf2208c5b94c8cc01c106b8f7c85efb91c926
change-id: 20261021-ks-unit-tests-ignore-long-tests-9f32078e9100
${prerequisites}
Technical Details
Message-ID:
<20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72838-linux-kernel-git=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72838-linux-kernel-git=dewy.ru
From: kaartic.sivaraam@gmail.com (Kaartic Sivaraam)
Newsgroups: linux.kernel.git
Subject: [PATCH 0/2] Make our clar tests ignore the long-tests argument
Date: Thu, 22 Oct 2026 16:31:56 +0530
Organization: Usenet Network
Message-ID: <20261022-ks-unit-tests-ignore-long-tests-v1-0-554a590d418b@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="194568"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7UAUjvn/APeE9oKbaKsMlwiLE0E= sha256:YfdSIuaQfQiWM3VGwt6gwngntAB++b2HRP7JN73YsYA=
sha1:mCC87TNtAJfK6lsW+pj24cFJzkg= sha256:QIo3t7gkTDJkD1WJ9Fv8qRRHYQoxUcUrTIgnBk2jqZI=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 2BF9A111252; Thu, 22 Oct 2026 14:07:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id Vb4dICvU54Yz;
Thu, 22 Oct 2026 14:07:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-72838-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id C08D1111220; Thu, 22 Oct 2026 14:07:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id DE3733839A; Thu, 22 Oct 2026 11:02:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792666925;
b=yHJLFmnQM1kwN2gne5//iCEftHPHKuIfOvqWcgAGBrJFGYMw9arMEUbBQNz6qbQoDQSn
TzBqibkVPLnj3MvV4aHlftrXkPRCRHCZx6ZNSP0IU9+adGrxftOptez3nj6EHe9RdfhV1
BA1Fykt5Q4C8qRUUUVg7lrjt0k/8g9JudgiwBqQEah6kC56zN88jTNsOgDwHR1ScA5Ndn
ZfrOOfusaM8EwTn7smascmlOy4CjSevu/XZx23AhuKZbsI5sPlGkALE5+nhH0W1Yauuxc
LaZqiaqg4v4zCWjMmFpRhlIEMI7oHTLdipIrmzrUOHdHslyplYmdpJCA+YglSEekTXw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792666925;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:Subject:Date:Message-Id:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
X-B4-Tracking:To:Cc:X-Mailer;
bh=Uw6im7uzm/XFO3yQqlqg5rkQfHmeNJy/cZTGemRUWAE=;
b=rQ8RDVcguvg1r1yHtWw2XNk8Z4R9WnrPm+u24vrXmzWkYSY/JdfgrEiP4qH/nfuQ62y6
wZC6djLZk0gb15YmYg+XX1ursXAqigiZVcBCltFzQ8yB0grKdZo3qwxNbtfOe8DCs1/+E
9w0qcRuRK3uCn9seDvLrx/EQf20TuGurSA4HdT/EJI1HmIf2i4rFXsbc0MO8Vfm4aD6zK
gvDXL1GU2euG0dMiq2RU5LWmYSyRWraT++zFtfw6LDeeoNVVZfEFiROclAR9Porzehp+a
uO+DLQW74bB0Jzu1qd1Zn5wh3byMJaxw8W5DRPUANQRu3ymBLMQOX19QH+d6NXyuAfA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="qm/4+Dfy";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id B6F8A606A323;
Thu, 22 Oct 2026 11:02:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=qm/4+Dfy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792666924;
b=Evjs5HFPIxmh9F/ckw8ljylWRnahSZXrBZOh24vvsVEfLlIrrveaKlQOh5GpdDsfbflG
pSOaDPvS1E/fYxeHEkybMB1YVL8a2Sfl1TuYSMg6dT1u0iLp2vleihQ0pTfSHRjApgM/+
kzJYWQllKWIqyjxxmaWWGgVQw4lf+8sTxH9J52iEuXdrjXRfmawlc2HmUq60/X6gopdf+
LsZAU5Fdrq1YhPbVR0Ff/GvlZxdyz8EM67vavsEnKPtoC7KyNwQgUdN3OPkF9FZE+Q7Pm
watiLrzdtkk7DlPODK4XLge6qTnB+UceAHgFKLnvnWH5t7u9mU5MFCpSBwfTWpPyLbw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792666924;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date:
Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:
X-B4-Tracking:To:Cc:X-Mailer;
bh=Uw6im7uzm/XFO3yQqlqg5rkQfHmeNJy/cZTGemRUWAE=;
b=soGGP6SBQ0DLxb2F1pY2g9Q/rLVx77MDJKpMZRF5YYkzi3qUd0Y9Z06DdODi3eNBHgWT
wdAdn1G8xr+KRwK0ztLub+pkjzpGZ28mitJ7Y4e+hUbqK94DLZNasv11AzWbBY2Mu7pal
sbL0ry9+8f0rGzPNA42SdDyRDF3utYJh0oktERV6PE8G+16CER6h77x7bD37xf5AoDlvE
fwDd1ppGT+xwKvUGeKLsX26MrAJ9tyiVkjkE9dMMgte8dEraowMrwkSLCOYWF/FqX9LsA
oFfwFzMvg/9a+bhGlaTf3+DnFJ7zFAUyjxPnVX7TWbvbF5/weRp3AZ8zZHpCZEUGXgQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="qm/4+Dfy";
arc=none smtp.remote-ip=74.125.82.180
X-Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81C28606A31A
for <git@vger.kernel.org>; Thu, 22 Oct 2026 11:02:04 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81C28606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-35f036b17easo1299936eec.1
for <git@vger.kernel.org>; Thu, 22 Oct 2026 04:02:04 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792666923; x=1793271723; darn=vger.kernel.org;
h=cc:to:content-transfer-encoding:content-type:mime-version
:message-id:date:subject:from:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=Uw6im7uzm/XFO3yQqlqg5rkQfHmeNJy/cZTGemRUWAE=;
b=qm/4+DfyZF4gnx7tJEjPZjFZGiG/1kTM2rLio5YDISNc0mTDgz4u4D9YZZC4K5cxdv
+bL14Vu5PNsR/oeHlfYL3F4oyQvP+DHKft/oKQGfs0DS6szyVYOKCS8dZJqVMZbQ9bbL
SdTl2JO9SdzKN1du19PEQOjUnsfz8F3aCOV5BD4JfJotxe1cH0S2PKmcce9PsDbw7ogL
XTg5QLwA2I2qE8GW4h484aDYoacXmZJNyUZLIfdssFHCmlDBEZG34vQILN1coCRjkB/8
8F1IWxOGqh602iXDpyaYPzG1pC6GjI9xGhvGJ6hfuu2tIOZyE73DPbBfJqdkTkIaT0rf
Rk+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792666923; x=1793271723;
h=cc:to:content-transfer-encoding:content-type:mime-version
:message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=Uw6im7uzm/XFO3yQqlqg5rkQfHmeNJy/cZTGemRUWAE=;
b=bGoPQd7hs4un5cj+0yifc8OnVSscnKHe6As645+iZRAnEBSCiPXiPHi3+3h33L5C9j
o1mTKtfFgKXJE6PUNxMoLefbWjL5vGMS+YcEJoyhCdxb7FAFfQHhj42MgKB2pu4wFXro
xySDc+SECfdZIWfnWu8n3uRHBlevowXJJT/aZfxu/dWCGJK5XhsbQBHDAV+c9loIuwok
EliVO/7LTX8UO7cz8TONomKTDfzDxwNC/fVs7rNjm1wQmGinmSTfvt/is9kaIRhIjdLe
xq8dbmKc9+P/GECEH3FcbJ9y7I8W/TWuvXGdDx4Vcm36NO/0vliMA0nQiWpHX0rDnT0H
Nbng==
X-Gm-Message-State: AFq9FYJhiPsRc2swvcfsIMm/D071znonbZP9P8/NqlhvUxkQOgNFM/3Z
RAXQyQL7Nj5myctpVmNpyrm1rkonIWwJf6/9/BCB7h15E308mPNYCJg/sGp0JQ==
X-Gm-Gg: AYBFou0vvkKlpQQurd02y3PbMuWP3CrvSdlVhHVae5Xllf99vmVI3DE2paHAPPtzE3d
ZNpsiRaSMtL0C5n6g2uEkXVcKTdznbKCXIK1nrB8mTe3BGnAa+c6/6CNuQk7BG9MPZKvbP1jz9y
cY33+GL/+y79ZksrZLIxipXnFAy3hvSxeq5OCNLxUtMcvPz2GnHpsEPeiVSsoVhuxQBsJ2ACUgs
iTj5NwOw82wzI5hzUo8DlMjDj3ZYPGswflrqG7M67RtckUoJOoXX8SJj8nAx80d0TVGveGaD3SU
EpKUwyqXPA095yYk14hNg4w/PEkwPYAuD9UHYHRhnhQ7soEYSanX0hx62JgMEQnOYWxzuB3tRx9
9+Prcn7aGl8bkrBHVrUsH+ReGAChOMn8J5e9XBXcwUCTivWWlT7wYglQ3o1PFnYMwba1Yj3aPZW
hU9v8/DGwWS1VTDqnnITw47gbhjXCMtSz/wpTpZuAElDShBdH5BswgMHKfbbzkXBlkYOgVxkon/
5OySOxRy4cA1EB8oVg8Fn8M6MiraTbmEVsZAUaDtmtpWD4SewF9+PFjmSNyR0cX
X-Received: by 2002:a05:693c:42c3:b0:35f:2349:a574 with SMTP id 5a478bee46e88-367508e2009mr6359141eec.40.1792666923220;
Thu, 22 Oct 2026 04:02:03 -0700 (PDT)
X-Received: from [127.0.1.1] ([115.108.41.154])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-368ca914bb8sm6277428eec.5.2026.10.22.04.02.01
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 22 Oct 2026 04:02:02 -0700 (PDT)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-B4-Tracking: v=1; b=H4sIACXt2WoC/y2NQQqDMBAAvyJ7dmGTglW/UjyUdo2LsinZKIL4d
4P0OHOYOcA4CRv01QGJNzGJWsDVFXymtwZG+RYGT75x5B3OhqtKxsyWDSVoTIxL1PA33fjw9Gy
5c0RQKr/Eo+z34TWc5wUXhbsmcQAAAA==
X-Cc: Patrick Steinhardt <ps@pks.im>
X-Mailer: b4 0.13.0