| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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 | Content-Type | Size |
|---|---|---|
| pg_regress_paths.patch | text/x-patch | 2.7 KB |
| jorgen.austvik.vcf | text/x-vcard | 391 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2007-11-26 15:30:00 | Re: pg_regress: stat correct paths |
| Previous Message | Brendan Jurd | 2007-11-25 20:08:24 | Re: [GENERAL] Empty arrays with ARRAY[] |