mclow.lists added a comment. How about not using XFAIL? Instead, just test for those two conditions. Psuedo-code: #if defined(GLIBC) #if GLIBC < 226 #error #elif TEST_STD_VER >= 11 #error #endif. http://reviews.llvm.org/D19835