Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: atf for libcurses



On Thu, Nov 04, 2010 at 06:46:48PM -0700, Paul Goyette wrote:
> 
> Your reasoning seems to imply that, if we were to change libcurses to 
> use a different, more optimum character sequence to generate a specific 
> screen appearance, that would be considered a regression.  I disagree 
> with that reasoning.
> 

well, so do I.  I am not sure where that implication came from.  If
someone changes the code to optimise the character sequence then that
is excellent - the test should be updated to reflect the new output.
What I did not want to do is blindly enshrine a suboptimal behaviour
into a test and then have people assume it must be ok because it
passed the test.

> It is not libcurse's job to generate a specific character sequence, but 
> to produce a specific appearance.  The fact that it uses a character 
> sequence to produce that appearance is an implementation detail, and 
> should not be the target of a regression test.
> 

errr... I really cannot understand this - we have a chunk of software
that should, modulo bugs, react the same every time you feed the same
calls into it you should get the same output.  People seem to be
implying that curses randomly switches outputs around from run to
run.  Believe me, it doesn't.  I have been helping maintain curses for
quite a while, I do know a fair bit about the guts of it.  What I have
done is based on a reasonably good grasp of what goes on inside the
library.  I am confident the methodology is sound.

-- 
Brett Lymn
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."




Home | Main Index | Thread Index | Old Index