[tests] Disable timing-based Timer tests in CI

Cherry-picked from eb8a1ef7aa.
This commit is contained in:
John Firebaugh
2017-02-15 11:25:47 -08:00
committed by Minh Nguyễn
parent 7d6b91f8e7
commit 28ad35fc04
2 changed files with 5 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ if(WITH_OSMESA)
add_compile_options(-D__OSMESA__)
endif()
if($ENV{CI})
add_compile_options(-DCI_BUILD=1)
endif()
mason_use(geometry VERSION 0.8.0 HEADER_ONLY)
mason_use(variant VERSION 1.1.0 HEADER_ONLY)
mason_use(unique_resource VERSION dev HEADER_ONLY)

View File

@@ -18,7 +18,7 @@
#define TEST_IS_SIMULATOR 0
#endif
#if !TEST_IS_SIMULATOR
#if !TEST_IS_SIMULATOR && !CI_BUILD
#define TEST_REQUIRES_ACCURATE_TIMING(name) name
#else
#define TEST_REQUIRES_ACCURATE_TIMING(name) DISABLED_ ## name