[nSLUG] Improving QA of Linux distributions
petrus at ftml.net
Fri Jun 24 17:56:21 ADT 2011
On Fri, Jun 24, 2011 at 04:51:48PM -0300, D G Teed wrote:
> On Fri, Jun 24, 2011 at 4:30 PM, Peter Dobcsanyi <petrus at ftml.net> wrote:
> > On Fri, Jun 24, 2011 at 12:36:54PM -0300, D G Teed wrote:
> > > I would think everyone who is writing code (say at Redhat, in this case
> > > of not testing for a file before opening) is aware of things they teach
> > in
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > a first year programming course.
> > Could you, please, explain what kind of "testing" you have in mind and
> > why that would be beneficial.
> I checked my email history and my memory was slightly off.
> In the problem I encountered, the file existed, but it was empty.
> This could have been recovered more gracefully by testing
> for error after a read from the file.
So we can conclude that, in general, there is no point to testing
anything *before* opening a file. No to mention the time window between
a test (whatever it would be) and the actual open operation.
More information about the nSLUG