From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3967 invoked by alias); 14 Jan 2015 13:42:47 -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: X-Seq: 34275 Received: (qmail 4805 invoked from network); 14 Jan 2015 13:42:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,T_HDRS_LCASE,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f126d000001e9a-04-54b66fec3840 Date: Wed, 14 Jan 2015 13:32:26 +0000 From: Peter Stephenson To: Zsh Hackers' List Subject: PATCH: don't run zpty tests on Cygwin Message-id: <20150114133226.7f8331e5@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5/e/4Vd03+dtCDKaeVbU42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGU0NO1kKegQqzi/rZGlgvMPTxcjJISFgItHydBcrhC0mceHe erYuRi4OIYGljBJdK2GcJUwS6289gXK2MUq8XdoM1sIioCrxa951FhCbTcBQYuqm2YxdjBwc IgLaEu0fxUDCwgJ6EjeOTWMHsXkF7CWuv9rNBmLzC+hLXP37iQlis73EzCtnGCFqBCV+TL4H NpJZQEti87YmVghbXmLzmrfMILaQgLrEjbu72ScwCsxC0jILScssJC0LGJlXMYqmliYXFCel 5xrqFSfmFpfmpesl5+duYoQE4ZcdjIuPWR1iFOBgVOLhnRmzLUSINbGsuDL3EKMEB7OSCG+a HFCINyWxsiq1KD++qDQntfgQIxMHp1QD43puU6nQTz8etM89H9v9efePiORn/DfjFB8at4Rd Z0pyf5ivfPZtUKPRo/TNMR4Cj4xS7xwr4WEOXeQ5ZZJRl9be5/cOHvoT3nbnW/jma1oOsoGr m4p/mu21u/Oe6eqL1Tan//fNEOY2Ki7NsHJS8q6xtKn+4PGj3+9fmZmU7vba2U69/wLqlViK MxINtZiLihMBTzxsliACAAA= The tests otherwise ran here, but incredibly slowly, so the problem with the kill didn't show up. I didn't realise they could run that slowly. diff --git a/Test/V08zpty.ztst b/Test/V08zpty.ztst index 5b08fc2..b0cbfa0 100644 --- a/Test/V08zpty.ztst +++ b/Test/V08zpty.ztst @@ -6,7 +6,8 @@ if ! zmodload zsh/zpty 2>/dev/null then ZTST_unimplemented="the zsh/zpty module is not available" - return 0 + elif [[ $OSTYPE = cygwin ]]; then + ZTST_unimplemented="the zsh/zpty module does not work on Cygwin" fi %test diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index a2aa007..383e652 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -1,7 +1,9 @@ # Tests for completion system. %prep - if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then + if [[ $OSTYPE = cygwin ]]; then + ZTST_unimplemented="the zsh/zpty module does not work on Cygwin" + elif ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then . $ZTST_srcdir/comptest mkdir comp.tmp cd comp.tmp diff --git a/Test/Y02compmatch.ztst b/Test/Y02compmatch.ztst index 7045800..db734fa 100644 --- a/Test/Y02compmatch.ztst +++ b/Test/Y02compmatch.ztst @@ -11,7 +11,9 @@ # contains the compadd output. %prep - if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then + if [[ $OSTYPE = cygwin ]]; then + ZTST_unimplemented="the zsh/zpty module does not work on Cygwin" + elif ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then . $ZTST_srcdir/comptest mkdir match.tmp cd match.tmp diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index bfdcdec..0627104 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -1,7 +1,9 @@ # Tests for _arguments. %prep - if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then + if [[ $OSTYPE = cygwin ]]; then + ZTST_unimplemented="the zsh/zpty module does not work on Cygwin" + elif ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then . $ZTST_srcdir/comptest mkdir comp.tmp cd comp.tmp pws