<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 24, 2012 at 11:04 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Apr 24, 2012 at 1:54 PM, Nico Weber <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br>

> Hi,<br>
><br>
> the attached patch expands the include_next for <float.h> on windows<br>
> to happen for _msc_ver too.<br>
><br>
> The test case for this is:<br>
><br>
> #include <float.h><br>
><br>
> inline bool IsFinite(const double& number) {<br>
>  return _finite(number) != 0;<br>
> }<br>
><br>
> But since that test depends on having MinGW's or MSVC's float.h, I<br>
> didn't add it to the patch.<br>
<br>
</div></div>Could you just restrict the test to certain platforms? (I've not<br>
looked at how fine-grained our ability to do that with lit is, but you<br>
could do it with similar macros in the test file than those in the<br>
header... but that's perhaps a little redundant)<br>
<br>
- David<br>
<br>
><br>
> Ok?<br>
><br>
> Nico<br>
><br></blockquote></div><br>I know of two mechanism in lit:<br><br>- REQUIRES (such as REQUIRES: shell)<br>- XFAIL (such as XFAIL: mingw, win32)<br><br>I do not know if REQUIRES could be used with platforms (as XFAIL) and blacklisting does not seem very interesting...<br>
<br>Is there a set of builtin such as __has_include that would detect whether an include_next exist ?<br><br>-- Matthieu<br></div>