Re: How managing crashing tests ?

2010-08-24 Thread GOUJON Alexandre
On 08/23/2010 11:47 PM, Andrew Eikum wrote: Just don't execute the code on that platforms that don't support it. How to check if the platform supports that codepath can be tricky, and there are a lot of ways to do it. Some examples are to use GetProcAddress; use a different function (if it's

How managing crashing tests ?

2010-08-23 Thread GOUJON Alexandre
Hi guys, A patch has been committed today saying Make .. crashing like it does on native. I know we have to follow (genuine) Windows behavior but I'm wondering how to handle these cases. For instance, how to add a test crashing on every Windows ? Is it useful ? I mean, none program can rely

Re: How managing crashing tests ?

2010-08-23 Thread Andrew Eikum
On 08/23/2010 12:59 PM, GOUJON Alexandre wrote: Anyway, I've seen mainly two approaches - if(0) - /* comment the crashing ok() */ What's the difference ? And why not #if 0 ? Using if(0) means the code in the body of the if-statement still has to compile. This can check against errors while