From f831f612168320bc4ecc90bff311ea2ff140197a Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Wed, 20 May 2020 10:04:55 +0800 Subject: [PATCH] Make buddy_allocator_test Exclusive (#24636) The background is that buddy_allocator_test depends on some big GPU allocations and current machine may not have it. It can cause random failure on cloud machine. After discussion with Shuo Tian, we decided to make buddy_allocator_test exclusive. --- paddle/fluid/memory/detail/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/memory/detail/CMakeLists.txt b/paddle/fluid/memory/detail/CMakeLists.txt index d80f26cb74..d9c53cef2e 100644 --- a/paddle/fluid/memory/detail/CMakeLists.txt +++ b/paddle/fluid/memory/detail/CMakeLists.txt @@ -13,6 +13,7 @@ cc_library(buddy_allocator SRCS buddy_allocator.cc DEPS memory_block system_allo cc_test(buddy_allocator_test SRCS buddy_allocator_test.cc DEPS buddy_allocator) if(WITH_TESTING) + set_tests_properties(buddy_allocator_test PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE") add_custom_command(TARGET buddy_allocator_test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../../testdata/buddy_allocator_test_data ${CMAKE_CURRENT_BINARY_DIR}/buddy_allocator_test_data ) -- GitLab