zsh-workers
 help / color / mirror / code / Atom feed
* make test hangs on the Y tests
@ 2011-02-19  4:25 Vincent Stemen
  2011-02-19 15:58 ` Bart Schaefer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vincent Stemen @ 2011-02-19  4:25 UTC (permalink / raw)
  To: zsh-workers

Hi.  On the master branch from git as of yesterday, running "make test"
hangs when it gets to the Y01completion test.  It seems to hang on any
of the 'Y' tests.

    # ZTST_verbose=2 make TESTNUM=Y test
    cd Test ; make check
    if test -n "gcc"; then  cd .. && DESTDIR=  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null;  fi
    if ZTST_testlist="`for f in ./Y*.ztst;  do echo $f; done`"  ZTST_srcdir="."  ZTST_exe=../Src/zsh  ../Src/zsh +Z -f ./runtests.zsh; then  stat=0;  else  stat=1;  fi;  sleep 1;  rm -rf Modules .zcompdump;  exit $stat
    ./Y01completion.ztst: starting.
    ZTST_getsect: read section name: prep
    ZTST_getchunk: read code chunk:
      if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
        . $ZTST_srcdir/comptest
        mkdir comp.tmp
        cd comp.tmp
        comptestinit -z $ZTST_testdir/../Src/zsh &&
        {
          mkdir dir1 &&
          mkdir dir2 &&
          touch file1 &&
          touch file2
        }
      else
        ZTST_unimplemented="the zsh/zpty module is not available"
      fi
    ^C

As you can see at the bottom, I eventually hit ^C to break out.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: make test hangs on the Y tests
  2011-02-19  4:25 make test hangs on the Y tests Vincent Stemen
@ 2011-02-19 15:58 ` Bart Schaefer
  2011-02-19 18:50 ` Vincent Stemen
  2011-02-20 18:13 ` Peter Stephenson
  2 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2011-02-19 15:58 UTC (permalink / raw)
  To: zsh-workers

On Feb 18, 10:25pm, Vincent Stemen wrote:
} Subject: make test hangs on the Y tests
}
} Hi.  On the master branch from git as of yesterday, running "make test"
} hangs when it gets to the Y01completion test.  It seems to hang on any
} of the 'Y' tests.

For what it's worth, I'm NOT able to reproduce this.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: make test hangs on the Y tests
  2011-02-19  4:25 make test hangs on the Y tests Vincent Stemen
  2011-02-19 15:58 ` Bart Schaefer
@ 2011-02-19 18:50 ` Vincent Stemen
  2011-02-20 18:13 ` Peter Stephenson
  2 siblings, 0 replies; 4+ messages in thread
From: Vincent Stemen @ 2011-02-19 18:50 UTC (permalink / raw)
  To: zsh-workers

On Fri, Feb 18, 2011 at 10:25:29PM -0600, Vincent Stemen wrote:
> Hi.  On the master branch from git as of yesterday, running "make test"
> hangs when it gets to the Y01completion test.  It seems to hang on any
> of the 'Y' tests.
> 
>     # ZTST_verbose=2 make TESTNUM=Y test
>     cd Test ; make check
>     if test -n "gcc"; then  cd .. && DESTDIR=  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null;  fi
>     if ZTST_testlist="`for f in ./Y*.ztst;  do echo $f; done`"  ZTST_srcdir="."  ZTST_exe=../Src/zsh  ../Src/zsh +Z -f ./runtests.zsh; then  stat=0;  else  stat=1;  fi;  sleep 1;  rm -rf Modules .zcompdump;  exit $stat
>     ./Y01completion.ztst: starting.
>     ZTST_getsect: read section name: prep
>     ZTST_getchunk: read code chunk:
>       if ( zmodload -i zsh/zpty ) >/dev/null 2>&1; then
>         . $ZTST_srcdir/comptest
>         mkdir comp.tmp
>         cd comp.tmp
>         comptestinit -z $ZTST_testdir/../Src/zsh &&
>         {
>           mkdir dir1 &&
>           mkdir dir2 &&
>           touch file1 &&
>           touch file2
>         }
>       else
>         ZTST_unimplemented="the zsh/zpty module is not available"
>       fi
>     ^C
> 
> As you can see at the bottom, I eventually hit ^C to break out.

Just as a reminder, this is on FreeBSD, in case it might make any
difference.

I have tracked down where it is hanging, but I don't know enough zsh
internals to know why.

When processing the %prep section of the Y tests,
it calls
    comptestinit -z $ZTST_testdir/../Src/zsh
which calls comptesteval() in Test/comptest.

On line 83 in comptesteval() it calls
    zpty -r -m zsh log_eval "*<PROMPT>*"
and thats where it hangs.  zpty never returns.

I hope this helps.  Let me know if there is anything more I can do to help
troubleshoot it.

Vince


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: make test hangs on the Y tests
  2011-02-19  4:25 make test hangs on the Y tests Vincent Stemen
  2011-02-19 15:58 ` Bart Schaefer
  2011-02-19 18:50 ` Vincent Stemen
@ 2011-02-20 18:13 ` Peter Stephenson
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 2011-02-20 18:13 UTC (permalink / raw)
  To: zsh-workers

On Fri, 18 Feb 2011 22:25:29 -0600
Vincent Stemen <vince.lists@hightek.org> wrote:
> Hi.  On the master branch from git as of yesterday, running "make test"
> hangs when it gets to the Y01completion test.  It seems to hang on any
> of the 'Y' tests.

Any idea what change might have caused this?  zpty has always been a bit
sensitive.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-20 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-19  4:25 make test hangs on the Y tests Vincent Stemen
2011-02-19 15:58 ` Bart Schaefer
2011-02-19 18:50 ` Vincent Stemen
2011-02-20 18:13 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).