Skip site navigation (1) Skip section navigation (2)

pg_regress: stat correct paths

From: Jorgen Austvik - Sun Norway <Jorgen(dot)Austvik(at)Sun(dot)COM>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: pg_regress: stat correct paths
Date: 2007-11-26 14:34:21
Message-ID: 474AD96D.8030105@sun.com (view raw or flat)
Thread:
Lists: pgsql-patches
Hi,

I think I have found a small problem in pg_regress.

In convert_sourcefiles() it stats directories based on the current 
working directory, but in convert_sourcefiles_in() it reads files based 
in srcdir or abs_builddir.

The attached patch changes the behavior of pg_regress, so that it stats 
the directories that it read the files from. This patch will also make 
pg_regress fail if the directories are missing, instead of silently 
ignoring the missing directories. If you think this fail-fast behavior 
is undesirable, I can create a patch that just ignores the files (todays 
behavior), or ignores them with a warning.

The attached patch is tested by running pg_regress in a non-standard 
path and by running "make check", both on Solaris Nevada on x64.

-J
-- 

Jørgen Austvik, Software Engineering - QA
Sun Microsystems Database Technology Group


Attachment: jorgen.austvik.vcf
Description: text/x-vcard (391 bytes)
Attachment: pg_regress_paths.patch
Description: text/x-patch (2.7 KB)

Responses

pgsql-patches by date

Next:From: Alvaro HerreraDate: 2007-11-26 15:30:00
Subject: Re: pg_regress: stat correct paths
Previous:From: Brendan JurdDate: 2007-11-25 20:08:24
Subject: Re: [GENERAL] Empty arrays with ARRAY[]

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group