From 99b2aabd460d0c508ffa7b21283a0512e322e717 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 24 Aug 2011 19:58:00 +0200 Subject: [PATCH] Disable the tests for Watcom. They are timing out and showing up on the dashboard. --- Tests/Module/GenerateExportHeader/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt index 914147189..5372f92eb 100644 --- a/Tests/Module/GenerateExportHeader/CMakeLists.txt +++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt @@ -2,6 +2,21 @@ cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR) project(GenerateExportHeader) +# Prevent timeout on Watcom by not running the tests. +if ("${CMAKE_COMPILER_ID}" MATCHES Watcom) + file(WRITE + "${CMAKE_CURRENT_BINARY_DIR}/main.cxx" + "int main() { return 0; } + " + ) + + add_executable( + GenerateExportHeader + "${CMAKE_CURRENT_BINARY_DIR}/main.cxx" + ) + return() +endif() + include(CheckCXXCompilerFlag) set( CMAKE_INCLUDE_CURRENT_DIR ON )