From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id EADB921D59 for ; Wed, 28 Feb 2024 17:33:03 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709137983; b=GnTij06eJBAYR6RC7Or/yTt1bvFRGAy8dRbE3kKi7KLIDjd2uEaD4Q0Rdwd952THR8X9LQsiW6 SWBXv28urSEmMkPUkr83/7Qv+Gd+zeXBRpsszpJZwsfmGs/kd/Fygt5Yb2juGDNb8xEUfJmUv6 4GsxPCizuOmX0+iJ2VtDIZ431RYjyE7PaggxWTTGWRjanmSmJXxQ5mu8VArL7en9Mmr98NTjCz Pzb4vfbhrJwLaXiNXk0giTnmK+WbhjFzVbeRWgbt/14jkhO55j8uHzinbNZ1hCxWuAqM+TmYU2 LWIxAi7wV3M4J3E/ebLskuJqLVVWWdA5I5Pu6kcHGUUHOA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01011-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.27; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1709137983; bh=lDWkVJd17l2h3z7W7Uc5qMjOEmmaMhUjAsZL/jXdpU0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version: Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=U0zkjcNOdXmFDODNvENEmd+lJlDa2v5R+S+1uG8fCJ0DkbfAc+6L5t1zkuITZN7ndLIbCbwrtN af96O9M8PQ/DSnndVDVJiA0e/W0vB6rGiZLHNAKUn9uhIDRuWt714D8o3UzNKGEWUrfCwXDYpP NeFe/1hJKu6qDpGJzpWUc8znxAOAG2ZVBSlKUAC1UVOOcNGdOefQmMrvlwpSLCqEFTnWwrR0TW nE6lAs3u/OFI0BeORHxLwF6GngCJD96Txuxj4hUyHVETGMcQ+jETKPU9oDEaDztH7EXKEpo3M3 0CLCUDz5cpVcRyL6c2wopwTVgjCinQq2GFKIGjl++fSVRw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=rBJY9e9hLAkMPqajYi6W7QGoluWexi7iMnzY4gw7dYI=; b=dxEj+op2ZSaJFsE/apIJ/kJgAy XYlM6REM4QCyA42rxl9NMD5sL4bAJridx+fdxVZUr5VvQ5+aRT57+EclX52HA5picY+LhV4yDvxHm aIemkLDlFCtvwjb6KyWoRrkENbUPwGJVwovk3rAeWKpLrHNHZ5B53W8kXHWyP3kEGPeXeX/piNW97 3qQyjzH4obkDv8aZh1kgPlVZ6qIvUEvFa+iurARuawybSdDcqkFUt683jj9b9J2a2qd9SGDRCgE+r R0wbP9HDvpyXzQzG4/QCDEathhsCMyX9pHAVXbAh2bd6GflQ0vf+/b+o+vyEfjbA8gyPezK5urJvP DCGZ9Rqg==; Received: by zero.zsh.org with local id 1rfMrf-000JqX-3N; Wed, 28 Feb 2024 16:33:03 +0000 Authentication-Results: zsh.org; iprev=pass (snd01011-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.27; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01011-bg.im.kddi.ne.jp ([27.86.113.27]:10849 helo=dfmta1008.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rfMrM-000JUt-Uu; Wed, 28 Feb 2024 16:32:45 +0000 Received: from mail.biglobe.ne.jp by omta1008.biglobe.ne.jp with ESMTP id <20240228163241295.XAKV.4048.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Thu, 29 Feb 2024 01:32:41 +0900 From: "Jun. T" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: [PATCH] runtests.zsh: output name of crashed test script Message-Id: <720C3DB0-489C-419D-8E54-D9428BC7F5C3@kba.biglobe.ne.jp> Date: Thu, 29 Feb 2024 01:32:40 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3696.120.41.1.4) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 52635 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: If a test script (for example D04parameter.zsh as in my previous post) crashes, runtests.zsh writes: "xx successful test scripts, 1 failure, yy skipped" But it takes some time to see which test has failed, because ztst.zsh dies before writing "./D04parameter.ztst: failed". We need to look through all the output and find that there is a line "D04parameter.ztst: starting." but no line "D04parameter.ztst: failed (or all tests successful)." # Yes, the directory Test/parameter.tmp is not removed # and we can guess from this, but ... With the patch below runtest.zsh writes the name of crashed script(s) with the signal name. diff --git a/Test/runtests.zsh b/Test/runtests.zsh index b66d579b6..538663f50 100644 --- a/Test/runtests.zsh +++ b/Test/runtests.zsh @@ -15,6 +15,7 @@ for file in "${(f)ZTST_testlist}"; do (( skipped++ )) elif (( $retval )); then (( failure++ )) + (( $retval > 128 )) && print "$file: failed: SIG$signals[$retval - = 127]." else (( success++ )) fi