Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version;
        bh=DA46Tu6o8LFLZz63ewdCYXNU1+yUFO7sx6GvalmuRD0=;
        b=jHowjnV8dOWoURgxQDSyNKPFoYwe+mEirMk7zmhnEJFKh/y3WPgq1iNvDUI37mYGvQ
         4cXaJsve4jNEhjOD46ew+wiBruShliWOvQaBYcj730mE6lPlb3/5tMxL8CGF1UQa6HJT
         fi83HZYXzjYB+eSxrZY9go7Kd8byUo/aefgFhCNqwDqYNWMtXjAL5A4UpywHLNt8iW2q
         TX1Xp4EOGMhimfdihpPBpFgg3aF7pTjDwWAQc8Z/j5PWGc7lI8y3YjSpuL50BfNyMOTU
         ekSEs6x+GhqDeCG5r/kJ/U4gAy8cVESi+SjSNCkqiErkRwuIWW/eozWH2Pluw0T+eo2L
         56+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=DA46Tu6o8LFLZz63ewdCYXNU1+yUFO7sx6GvalmuRD0=;
        b=YtqbHDvGyOZsvQAB9l8c7mXvy9sIlqMdNtNv0dxgnkQeS4WIWCiPH4uQU2xKbW9lL9
         02gOgbwqgLLmCXpaOF9Ux4OVM4ymFPXDPmjH2Q8lycrwVGBVBEI03jQjEogDhaBgd6pv
         gksuZ3dA6HtJsZwva8dtXEMr2sUbl/lmVofIr4NBVAcWOveVBcUmx0PPxMBLfho+IYii
         XgybyDa5OB0eGhj0JWnURsd1YqzwIO6f/chOPnjXuAFdaBfhFbVPZcz7tvDTbrDyKN+c
         o04IhXVqMu5g/iI+fKSXbFI7ymKisxwExD/Z1cMA/3Qy1G+7gm+MGtwKeSCN6mIrUOv8
         TGFA==
X-Gm-Message-State: AOPr4FWr4JCFettLOeOpPxwYT7f7RhjEE0oMttXJn55BpJBmuumQPE+ytyec6Jy4CkrzVg==
X-Received: by 10.98.76.22 with SMTP id z22mr31577655pfa.78.1461960596772;
        Fri, 29 Apr 2016 13:09:56 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160429131027.ZM22749@torch.brasslantern.com>
Date: Fri, 29 Apr 2016 13:10:27 -0700
In-Reply-To: <ufa1t5pl0yg.fsf@epithumia.math.uh.edu>
Comments: In reply to Jason L Tibbitts III <tibbs@math.uh.edu>
        "Bug in C02cont.ztst's -N test" (Apr 28,  7:20pm)
References: <ufa1t5pl0yg.fsf@epithumia.math.uh.edu>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: Bug in C02cont.ztst's -N test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38358

On Apr 28,  7:20pm, Jason L Tibbitts III wrote:
} Subject: Bug in C02cont.ztst's -N test
}
} When building zsh in a chroot created by the "mock" tool (used in Fedora
} and derivatives to build packages in a clean chroot)

This test has been changed as of 2015/12/31 so the newer test should be
in zsh-5.2.  What version are you attempting to build?

The new test is

  elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then
    ZTST_skip="[[ -N file ]] not supported with noatime file system"

(that whole "elif ...; then" is one long line containing "" in case it
gets wrapped or misjoined by email clients.  However I guess a line of
output from df that begins with a hyphen would still break that.


diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 88cad0d..f9fc185 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -154,7 +154,7 @@
     ZTST_skip="[[ -N file ]] not supported on Cygwin"
   elif (( isnfs )); then
     ZTST_skip="[[ -N file ]] not supported with NFS"
-  elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then
+  elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep -- "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then
     ZTST_skip="[[ -N file ]] not supported with noatime file system"
   else
     [[ -N $newnewnew && ! -N $unmodified ]]

