[Gdiplus 6/6] Don't check for succeeding functions, they always do

Adam Petaccia adam at tpetaccia.com
Sat Jun 28 11:45:01 CDT 2008


On Sat, 2008-06-28 at 10:25 -0500, James Hawkins wrote:
> On Sat, Jun 28, 2008 at 9:50 AM, Adam Petaccia <adam at tpetaccia.com> wrote:
> > On Fri, 2008-06-27 at 19:19 -0500, James Hawkins wrote:
> >> On Fri, Jun 27, 2008 at 7:16 PM, Adam Petaccia <adam at tpetaccia.com> wrote:
> >> >
> >> > Subject: [Gdiplus 6/6] We're not checking to see if these functions
> >> > succeed or not, they all just return Ok.
> >> >
> >>
> >> The point of regression tests is to prove that this is always the case...
> >>
> > The GetGeneric* functions forward to CreateFontFamilyFrom name; I wrote
> > the regression tests to make sure that we retrieve the correct font;
> > Also, if one fails, it will be caught when the FontName string doesn't
> > compare correctly.
> >
> 
> Conformance tests are:
> 
> * independent of implementation.  We don't know how native implements
> this function (and we don't really care), and there's no guarantee
> that our implementation of CreateFontFamilyName won't change.
Good point.

> 
> * independent of other tests (unit).  You're watering down the
> 'FontName string comparison' test by making it also rely on the
> results of the previous GetGeneric* functions as well.  Each test
> tests one thing.
> 

Ok. I'll scrap this patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080628/89400320/attachment.pgp 


More information about the wine-devel mailing list