
set (Libraries  Core Hist Gpad MathCore)
set (testname stressVdt) 


if( CMAKE_COMPILER_IS_GNUCXX AND GCC_MAJOR GREATER 3 AND GCC_MINOR GREATER 6 )
  set (ModernGcc True)
endif()

if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND CLANG_MAJOR GREATER 2 AND CLANG_MINOR GREATER 3 )
  set (ModernClang True)
  # __extern_always_inline is not understood by clang as of version 3.5
  set (alwaysInlineClang "-D__extern_always_inline=inline")
endif()

if( ModernGcc)
   set(additional_compile_flags "-O3 -ffast-math")
endif()

if( ModernClang)
   set(additional_compile_flags "-O3 -ffast-math ${alwaysInlineClang}")
endif()

if (CMAKE_CXX_COMPILER MATCHES "/(icpc|icc)$")
   set (IsIcc True)
endif()

if(NOT WIN32 AND NOT IsIcc)
  ROOT_EXECUTABLE(${testname} ${testname}.cxx LIBRARIES ${Libraries} ADDITIONAL_COMPILE_FLAGS ${additional_compile_flags} )
  ROOT_ADD_TEST(${testname} COMMAND ${testname} FAILREGEX "too") # for "too slow" and "too inaccurate" :)
endif()


set (Libraries  Core Hist Gpad MathCore)
set (testname stressVdt) 


if( CMAKE_COMPILER_IS_GNUCXX AND GCC_MAJOR GREATER 3 AND GCC_MINOR GREATER 6 )
  set (ModernGcc True)
endif()

if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND CLANG_MAJOR GREATER 2 AND CLANG_MINOR GREATER 3 )
  set (ModernClang True)
  # __extern_always_inline is not understood by clang as of version 3.5
  set (alwaysInlineClang "-D__extern_always_inline=inline")
endif()

if( ModernGcc)
   set(additional_compile_flags "-O3 -ffast-math")
endif()

if( ModernClang)
   set(additional_compile_flags "-O3 -ffast-math ${alwaysInlineClang}")
endif()

if(NOT WIN32)
  ROOT_EXECUTABLE(${testname} ${testname}.cxx LIBRARIES ${Libraries} ADDITIONAL_COMPILE_FLAGS ${additional_compile_flags} )
  ROOT_ADD_TEST(${testname} COMMAND ${testname} FAILREGEX "too") # for "too slow" and "too inaccurate" :)
endif()

Revert "Disable vdt test if ICC is present"
Revert "Disable vdt test if ICC is present"

The way in which the test is disabled is a bit too intrusive.
This reverts commit e14b6325f1ceb1fbda030cf18bd0a66138735e5d.
