From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: test-ob-sh/session Date: Fri, 03 Aug 2012 13:36:00 -0600 Message-ID: <87zk6bu5sv.fsf@gmx.com> References: <87vch1cdy4.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxNfa-0004Oo-Hs for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 15:36:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxNfY-0005lo-JX for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 15:36:22 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:41365) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SxNfY-0005lc-CE for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 15:36:20 -0400 In-Reply-To: <87vch1cdy4.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 02 Aug 2012 21:05:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > I'm currently seeing a problem with this test (only on Win7, both > NTEmacs and Cygwin). The test just hangs and never finishes. All my > attempts to have it fail in the same way in an interactive sessions were > fruitless. However, it seems that the first time a session is > initiated, it does not start at all. The second time it then works as > expected. Why Emacs hangs when it gets there in batch mode I can't > see... > > Incidentally, sh tests will run even when not explicitly configured, > which seems odd since I can't find any code that loads ob-sh either > directly or through autoloads and thus the guard code at the top of the > test file should leave those tests undefined. > There are a number of tests which execute shell code blocks in test-ob.el. This file has no guards, so it will be run on every system. I guess at the time I wrote these tests I assumed that every system would support both emacs-lisp and sh code blocks. At some point either 1. all tests in test-ob.el which run sh code blocks should be placed behind conditional guards so they are only loaded when shell support is present 2. all tests in test-ob.el which run sh code blocks should be switched to running emacs-lisp code blocks Best, -- Eric Schulte http://cs.unm.edu/~eschulte