From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martyn Jago Subject: Re: [patch][test] Avoid writes to non-temp test-example files Date: Thu, 05 Jan 2012 18:31:15 +0000 Message-ID: References: <87ty4a13sz.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ris6C-0002XA-RR for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:31:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ris66-0004p9-O8 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:31:36 -0500 Received: from lo.gmane.org ([80.91.229.12]:53119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ris66-0004p2-Iz for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:31:30 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ris64-0001Pz-0E for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 19:31:28 +0100 Received: from 88-96-171-138.dsl.zen.co.uk ([88.96.171.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jan 2012 19:31:27 +0100 Received: from martyn.jago by 88-96-171-138.dsl.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jan 2012 19:31:27 +0100 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: emacs-orgmode@gnu.org Achim Gratz writes: > Martyn Jago writes: >> Attached is a patch to modify all tests that currently write to non-temp >> test-example files such as `testing/babel.org'. Instead, the tests now >> write to temp files, which are thrown away at the conclusion of the >> test. > > With NTemacs24 on Win7, if neither TMP nor TEMP environment variables > are set, it choses C:\ as the temp directory, which isn't writable for > normal users. This makes all tests fail that write to temporary files. > I'm not sure how exactly it ends up with C:\, but this should either be > fixed or we need to make sure that TEMP or TMP is set from Makefile > before running tests. > > > Regards, > Achim. Wow! Strictly speaking I guess that's an NTemacs24 bug, but we do have the option of over-riding the default Emacs tmp location, which may incur some extra house-keeping by the test-runners. I will leave that decision to a maintainer. I guess the makefile could issue a message on windows if an env var is not set? Best, Martyn