From: Navarrop Date: Thu, 12 May 2011 09:19:48 +0000 (+0200) Subject: Add missing test before set properties. X-Git-Tag: v3_6_rc3~52 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/75cc9b3ec3e6cc1da70e658b764e025f2b478e61?hp=d9f6a4409b58ac98618a4b646af874f06ceac856 Add missing test before set properties. --- 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)