From 75cc9b3ec3e6cc1da70e658b764e025f2b478e61 Mon Sep 17 00:00:00 2001 From: Navarrop Date: Thu, 12 May 2011 11:19:48 +0200 Subject: [PATCH] Add missing test before set properties. --- buildtools/Cmake/AddTests.cmake | 40 +++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index 3ef3eecdbb..08049553dc 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -461,29 +461,41 @@ if(${ARCH_32_BITS}) set_tests_properties(gras-rpc-sg-32-thread PROPERTIES WILL_FAIL true) set_tests_properties(gras-all2all-sg-32-thread PROPERTIES WILL_FAIL true) set_tests_properties(gras-synchro-sg-32-thread PROPERTIES WILL_FAIL true) - set_tests_properties(gras-rpc-sg-32-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-all2all-sg-32-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-synchro-sg-32-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-rpc-sg-32-raw PROPERTIES WILL_FAIL true) - set_tests_properties(gras-all2all-sg-32-raw PROPERTIES WILL_FAIL true) - set_tests_properties(gras-synchro-sg-32-raw PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(gras-rpc-sg-32-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-32-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-32-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(gras-rpc-sg-32-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-32-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-32-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) else(${ARCH_32_BITS}) set_tests_properties(gras-rpc-sg-64-thread PROPERTIES WILL_FAIL true) set_tests_properties(gras-all2all-sg-64-thread PROPERTIES WILL_FAIL true) set_tests_properties(gras-synchro-sg-64-thread PROPERTIES WILL_FAIL true) - set_tests_properties(gras-rpc-sg-64-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-all2all-sg-64-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-synchro-sg-64-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(gras-rpc-sg-64-raw PROPERTIES WILL_FAIL true) - set_tests_properties(gras-all2all-sg-64-raw PROPERTIES WILL_FAIL true) - set_tests_properties(gras-synchro-sg-64-raw PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(gras-rpc-sg-64-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-64-ucontext PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-64-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(gras-rpc-sg-64-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-all2all-sg-64-raw PROPERTIES WILL_FAIL true) + set_tests_properties(gras-synchro-sg-64-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) endif(${ARCH_32_BITS}) if(HAVE_MC) set_tests_properties(mc-bugged1-thread PROPERTIES WILL_FAIL true) set_tests_properties(mc-bugged2-thread PROPERTIES WILL_FAIL true) set_tests_properties(mc-centralized-thread PROPERTIES WILL_FAIL true) - set_tests_properties(mc-centralized-ucontext PROPERTIES WILL_FAIL true) - set_tests_properties(mc-centralized-raw PROPERTIES WILL_FAIL true) + if(HAVE_UCONTEXT_H) + set_tests_properties(mc-centralized-ucontext PROPERTIES WILL_FAIL true) + endif(HAVE_UCONTEXT_H) + if(HAVE_RAWCTX) + set_tests_properties(mc-centralized-raw PROPERTIES WILL_FAIL true) + endif(HAVE_RAWCTX) endif(HAVE_MC) endif(release) -- 2.20.1