[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Test cases broken when builddir != srcdir

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2001-11-16 09:11:04 CET

On Thu, Nov 15, 2001 at 07:25:37PM -0600, Ben Collins-Sussman wrote:
> Greg Stein <gstein@lyra.org> writes:
>
> > The whole "srcdir" file concept is really bogus... We should
> > be passing the source directory on the command line. Apps
> > that don't want it should ignore it. I had coded this at
> > some point, but then somebody ripped it out. It really
> > should go back in.
>
> It was taken out because nearly every test was complaining:
> "warning: ignoring bogus argument". It seems awfully silly to
> me that *every* test we write, past and future, now have this
> obligation to expect (or deliberately ignore) a srcdir on the
> commandline. It seems like an extra, unnecessary maintenance
> hassle to me. :-(

Any objections to using an environment variable?

Parent processes could start children with the environment
variable set (similar to adding a command line argument) and the
children will ignore them by default without complaining about
extra arguments etc. For things that need to find the srcdir,
they can just look at $srcdir (or whatever.)

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:48 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.