[PATCH] dmstyle/tests: Relax style descriptor test with nothing loaded

Michael Stefaniuc mstefani at winehq.org
Thu Mar 15 14:40:41 CDT 2018


On 03/15/2018 06:11 AM, Alex Henrie wrote:
> Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> ---
> This test has been failing on the Windows 7 testbot since February 26,
> likely because of a Windows update.
Heh, that's when I added that test:
git log 9ae8b8c00f2c dlls/dmstyle/

I noticed the issue two days later and tried to reproduce it with
TestBot job 36301 (already deleted on the testbot). I couldn't!
Here's are reruns with just a whitespace change:
https://testbot.winehq.org/JobDetails.pl?Key=36793
https://testbot.winehq.org/JobDetails.pl?Key=36794
https://testbot.winehq.org/JobDetails.pl?Key=36795

Consistently not reproducible when run manually.
Consistently reproducible when run as part of the daily run but *only*
on newtb-w7pro64-32: The returned data is not random, always an extra
DMUS_OBJ_VERSION that shouldn't be there.

I've compared the dll version and it is on all the exact same dmstyle
6.1.7600.16385

That's why I asked back then Francois:
[23:37:06] <puk> fgouget_: Tag: newtb-w7pro64-32
[23:37:14] <puk> fgouget_: which box is that?
[23:37:37] <puk> w7pro64 (32 bit) ?
[23:38:04] <puk> because I don't see test failures when running the
tests manually on the WTB
[23:38:17] <puk> newtb-w7pro64-32 is the only one to show it
[23:59:35] <fgouget_> puk: it's a test VM, I think you can ignore it as
I will take it down soon
[23:59:52] <fgouget_> set as in for testing the TestBot, not for testing
Wine
[23:59:56] <fgouget_> s/set/test/

So I'm ignoring that issue as it will go away.

bye
	michael

> 
>  dlls/dmstyle/tests/dmstyle.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/dlls/dmstyle/tests/dmstyle.c b/dlls/dmstyle/tests/dmstyle.c
> index ed12315a19..a773607f8b 100644
> --- a/dlls/dmstyle/tests/dmstyle.c
> +++ b/dlls/dmstyle/tests/dmstyle.c
> @@ -458,9 +458,8 @@ static void test_parsedescriptor(void)
>      /* Nothing loaded */
>      hr = IDirectMusicObject_GetDescriptor(dmo, &desc);
>      ok(hr == S_OK, "GetDescriptor failed: %08x, expected S_OK\n", hr);
> -    ok(desc.dwValidData == DMUS_OBJ_CLASS /* XP */ ||
> -            broken(desc.dwValidData == (DMUS_OBJ_OBJECT | DMUS_OBJ_CLASS)), /* Vista and above */
> -            "Got valid data %#x, expected DMUS_OBJ_OBJECT\n", desc.dwValidData);
> +    ok(desc.dwValidData & DMUS_OBJ_CLASS,
> +            "Got valid data %#x, expected DMUS_OBJ_CLASS\n", desc.dwValidData);
>      ok(IsEqualGUID(&desc.guidClass, &CLSID_DirectMusicStyle),
>              "Got class guid %s, expected CLSID_DirectMusicStyle\n",
>              wine_dbgstr_guid(&desc.guidClass));
> 




More information about the wine-devel mailing list