UnboundedQueue: Fix advanceHead
[folly.git] / CMake / FollyFunctions.cmake
index 61992c62159f3224869bbc21435cd7c752ccae7d..ee538856b20fee6819fc70beb3002941d444be0b 100755 (executable)
@@ -205,7 +205,9 @@ function(folly_define_tests)
                     "x${ARGV${currentArg}}" STREQUAL "xDIRECTORY")\r
               break()\r
             elseif (argumentState EQUAL 0)\r
-              if ("x${ARGV${currentArg}}" STREQUAL "xHANGING")\r
+              if ("x${ARGV${currentArg}}" STREQUAL "xBROKEN")\r
+                set(test_${cur_test}_tag "BROKEN")\r
+              elseif ("x${ARGV${currentArg}}" STREQUAL "xHANGING")\r
                 set(test_${cur_test}_tag "HANGING")\r
               elseif ("x${ARGV${currentArg}}" STREQUAL "xSLOW")\r
                 set(test_${cur_test}_tag "SLOW")\r
@@ -246,6 +248,7 @@ function(folly_define_tests)
   set(cur_test 0)\r
   while (cur_test LESS test_count)\r
     if ("x${test_${cur_test}_tag}" STREQUAL "xNONE" OR\r
+        ("x${test_${cur_test}_tag}" STREQUAL "xBROKEN" AND BUILD_BROKEN_TESTS) OR\r
         ("x${test_${cur_test}_tag}" STREQUAL "xSLOW" AND BUILD_SLOW_TESTS) OR\r
         ("x${test_${cur_test}_tag}" STREQUAL "xHANGING" AND BUILD_HANGING_TESTS)\r
     )\r