[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Tracing weirdness in the kernel32:profile tests
From:       Paul Vriens <paul.vriens.wine () gmail ! com>
Date:       2009-03-31 9:16:00
Message-ID: 49D1DF50.4080902 () gmail ! com
[Download RAW message or body]

Michael Karcher wrote:
> Am Dienstag, den 31.03.2009, 09:42 +0200 schrieb Paul Vriens:
> 
>> When I now run the test I get (and I omitted the buf/data output here):
>>
>> profile.c:835: Test failed: File doesn't match
>> profile.c:835: Test failed: File doesn't match
>> profile.c:835: Test failed: File doesn't match
>> profile.c:835: Test failed: File doesn't match
>>
>> So the linenumbers are not the ones from the original ok() message but instead 
>> the ones from the last trace() message.
>>
>> Any idea?
> 
> Expected behaviour. You must not call trace from within the argument
> list of an ok() statement. ok()/trace() first sets a global variable to
> the current location, and then calls a printing function passing and
> evaluating the parameters. If one of them changes the global variable
> already set, the location printed is wrong, as you see here.
> 
> Regards,
>   Michael Karcher
> 
> 
Thanks for clearing that up.

-- 
Cheers,

Paul.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic