logging: update initialization code to use the new LogConfig logic
[folly.git] / CMake / FollyFunctions.cmake
index 61992c6..ee53885 100755 (executable)
@@ -205,7 +205,9 @@ function(folly_define_tests)
                     "x${ARGV${currentArg}}" STREQUAL "xDIRECTORY")\r
               break()\r
             elseif (argumentState EQUAL 0)\r
                     "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
                 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
   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
         ("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