[6/6] oleaut32/tests: Add more tests for typelib data.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Oct 6 00:50:45 CDT 2015
Andrew Eikum <aeikum at codeweavers.com> wrote:
> > +{
> > + "a",
> > + "{00000000-0000-0000-0000-000000000000}",
> > + /*kind*/ TKIND_ALIAS, /*flags*/ 0, /*align*/ 1, /*size*/ 4,
> > + /*#vtbl*/ 0, /*#func*/ 0
> > +},
> ...
> > +{
> > + "c",
> > + "{016fe2ec-b2c8-45f8-b23b-39e53a75396b}",
> > + /*kind*/ TKIND_ALIAS, /*flags*/ 0, /*align*/ 1, /*size*/ 4,
> > + /*#vtbl*/ 0, /*#func*/ 0
> > +},
>
> These two tests fail on my Win7 VM:
>
> typelib.c:4378: Interface a
> typelib.c:4388: Test failed: typeattr->cbSizeInstance expected 4 got 0
> typelib.c:4378: Interface _a
> typelib.c:4378: Interface aa
> typelib.c:4378: Interface _b
> typelib.c:4378: Interface bb
> typelib.c:4378: Interface c
> typelib.c:4388: Test failed: typeattr->cbSizeInstance expected 4 got 0
> typelib.c:4378: Interface _c
>
> I get the same failures when running the tests on Wine.
>
> Unlike the testbot, everything else passes on my VM.
Thanks for pointing this out Andrew, I can reproduce this now, and testbot
confirms that it's another difference between midl and widl: midl sets
cbSizeInstance for TKIND_ALIAS to 4 while widl stores 0 for this type.
--
Dmitry.
More information about the wine-devel
mailing list