From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 52ace0eb for ; Mon, 17 Feb 2020 15:12:48 +0000 (UTC) Received: (qmail 551 invoked by alias); 17 Feb 2020 15:12:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45452 Received: (qmail 26689 invoked by uid 1010); 17 Feb 2020 15:12:37 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt1-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(209.85.160.178):SA:0(-2.0/5.0):. Processed in 0.742315 secs); 17 Feb 2020 15:12:37 -0000 X-Envelope-From: chris@chrisdown.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.160.178 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=z+HEK91QgpLTIbjrjfJ2OKntgu9FMCYcV8ThVAnIVQg=; b=Dz0x6FxDeO/FanHTrBUHqS3J5B/2DtuErzIMqawcAjbTJciwutxT7xiCU4RG+9tOUp 8drvJtA9fsd2I4D79epEkL6yjrrxNBSn91cwtvx9BVFjLSckiwUXNfdeIZBp+URCVfGk 2oAyiLt6Mkbs0xxldfee9njbTyOkKyFRnJPaL9vCfN0UyaH7pk+Lpqxk254Uriwz+Jqd nLdqXX4D0kEEmKBDa00RYGCwbiZSkWbcYHnlABaVNhI2XjasW+lfKbJumNgmuz9eIyG5 Mkl+2Oc4GFhWZNV8U2E+0RF3si/QM6mXRI2S1e46gCit6y6ysmFPrdduCvklq/FKU07r 20gQ== X-Gm-Message-State: APjAAAVhP/ucSjoYMAYoRG4oJ2xCDdaNRXFRY4rUCjqYpjv8aatPKY7z Ft4jZdxVMdmA3lv6mpayWcuA+P/7TCj7QQ== X-Google-Smtp-Source: APXvYqwFxdQARMg57jyogwtf6ZnuY7bp0A+RvCq044NQolvbZmPuQa4+Ho/PB8tjaXyGV8RRUDWwnA== X-Received: by 2002:ac8:1866:: with SMTP id n35mr13217759qtk.28.1581952323235; Mon, 17 Feb 2020 07:12:03 -0800 (PST) Date: Mon, 17 Feb 2020 10:12:02 -0500 From: Chris Down To: zsh-workers@zsh.org Cc: Daniel Shahaf Subject: [PATCH v3 2/3] builtins: kill: Add `kill ''` regression test with explicit sigspec Message-ID: <9cd0633db0d2e6d5238c98426bf18a0946e81c60.1581952273.git.chris@chrisdown.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: The version without a sigspec can't be added yet because it would still kill the test runner even in expected-to-fail mode, see workers/45449 for discussion. For the same reason, we use a signal which is non-fatal by default and unlikely to be sent by someone else, SIGURG, to do the expected-to-fail case prior to the fix. --- Test/B11kill.ztst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Test/B11kill.ztst b/Test/B11kill.ztst index c254b0925..fe2da1012 100644 --- a/Test/B11kill.ztst +++ b/Test/B11kill.ztst @@ -58,3 +58,12 @@ ) 1:kill with sigspec only ?(eval):kill:2: not enough arguments + +# Regression tests: `kill ''` should not result in `kill 0`. + + ( + trap 'exit 11' URG + kill -URG '' + ) +1f:kill with empty pid and sigspec should not send signal to current process group +?(eval):kill:3: illegal pid: -- 2.25.0