<div>How are XFAIL and XTARGET supposed to work in a test?</div>
<div> </div>
<div>It would be nice if these were documented on the Testing Infrustructure page.</div>
<div> </div>
<div>In looking at the TestRunner.py file, it seems that you should be able to put something this this in a test to tell it that the test is expected to fail on Windows:</div>
<div> </div>
<div>// XFAIL: i686-pc-win32,x86_64-pc-win32</div>
<div> </div>
<div></div>
<div>But it seems that regardless of what I put after XFAIL, the test comes out as an expected failure if the test fails, or an unexpected pass if the test passes.  I've been bouncing between Linux and Windows trying different things.  It seems that only "// XFAIL" is currently used.</div>

<div> </div>
<div>I don't know Python enough to really understand what should be happening.</div>
<div> </div>
<div>Basically, the Driver/hello.c test doesn't pass on Windows.  I though if I put MinGW gcc in the PATH it might pass, but I get the following errors from just running the compile command line:</div>
<div> </div>
<div>C:\Tools\llvm\tools\clang\test>clang -ccc-echo -v -o tmp.o Driver/hello.c<br>clang version 1.1 (trunk 84674)<br>Target: i686-pc-win32<br>Thread model: posix<br> "C:/Tools/llvm/bin/Debug/clang-cc.exe" -triple i686-pc-win32 -S -disable-free -main-file-name hello.c --relocation-model static --disable-f<br>
p-elim --unwind-tables=0 --fmath-errno=1 -v -fexceptions=0 -fdiagnostics-show-option -o C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s -x c D<br>river/hello.c<br>clang-cc version 1.1 based upon llvm 2.7svn hosted on i686-pc-win32<br>
ignoring nonexistent directory "c:\Program Files\Microsoft Visual Studio 9.0\VC\PlatformSDK\Include"<br>ignoring nonexistent directory "/usr/local/include"<br>ignoring nonexistent directory "/System/Library/Frameworks"<br>
ignoring nonexistent directory "/Library/Frameworks"<br>#include "..." search starts here:<br>#include <...> search starts here:<br> C:/Tools/llvm/bin/lib/clang/1.1/include<br> c:\Program Files\Microsoft Visual Studio 9.0\VC\include<br>
 /usr/include<br>End of search list.<br> "c:/mingw/bin/gcc.exe" -v -c -o C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000001.o -x assembler C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s<br>Using built-in specs.<br>Target: mingw32<br>
Configured with: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --e<br>nable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --prefi<br>
x=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32<br>Thread model: win32<br>gcc version 4.4.0 (GCC)<br>COLLECT_GCC_OPTIONS='-v' '-c' '-o' 'C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000001.o' '-mtune=i386'<br>
 c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/as.exe -o C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000001.o C:/DOCUME~1/fcadmin/L<br>OCALS~1/Temp/cc-000000.s<br>C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s: Assembler messages:<br>
C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s:4: Error: no such instruction: `align 16'<br>C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s:20: Error: no such instruction: `align 16'<br>C:/DOCUME~1/fcadmin/LOCALS~1/Temp/cc-000000.s:22: Error: no such instruction: `db "I'm a little driver, short and stout.\000"'<br>
clang: error: assembler command failed with exit code 1 (use -v to see invocation)</div>
<div> </div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div>