Re: ignore $PostgreSQL lines in regression tests? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ignore $PostgreSQL lines in regression tests?
Date
Msg-id 10482.1211132761@sss.pgh.pa.us
Whole thread Raw
In response to ignore $PostgreSQL lines in regression tests?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: ignore $PostgreSQL lines in regression tests?  (Andrew Dunstan <andrew@dunslane.net>)
Re: ignore $PostgreSQL lines in regression tests?  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Recently while adding $PostgreSQL markers to a bunch of .c and .h files 
> I ran into trouble with the ecpg regression tests and had to revert the 
> change for a handful of files. However, it occurred to me that we could 
> have pg_regress tell diff to ignore such lines, by passing it the 
> arguments "-I  '\$PostgreSQL:' ", which would tell it to ignore 
> additions or deletions of lines matching that regex.

> Would this be a good thing to do?

I'm inclined to think not.  It's easy to think of scenarios where such
a switch would mask errors.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: ignore $PostgreSQL lines in regression tests?
Next
From: Andrew Dunstan
Date:
Subject: Re: ignore $PostgreSQL lines in regression tests?