[Piglit] [PATCH] ext_timer_query/time-elapsed: only build on unix

Jose Fonseca jfonseca at vmware.com
Mon Oct 17 12:46:01 PDT 2011


Brian,

Looks good to me.

Yep, abstracting OS dependent stuff with util would be the best long term, but I agree that the most important on the short term is fix the build.

Jose

----- Original Message -----
> We dont have "sys/time.h" or gettimeofday() on MSVC so the build
> fails
> there.  With this patch we simply doesn't build the test on non-Unix
> systems.
> 
> Alternately, we could write a piglit wrapper for gettimeofday() with
> some other implementation for MSVC.
> ---
>  tests/spec/ext_timer_query/CMakeLists.gl.txt |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/tests/spec/ext_timer_query/CMakeLists.gl.txt
> b/tests/spec/ext_timer_query/CMakeLists.gl.txt
> index f8c1700..68f0551 100644
> --- a/tests/spec/ext_timer_query/CMakeLists.gl.txt
> +++ b/tests/spec/ext_timer_query/CMakeLists.gl.txt
> @@ -11,4 +11,6 @@ link_libraries (
>  	${GLUT_glut_LIBRARY}
>  )
>  
> -add_executable (ext_timer_query-time-elapsed time-elapsed.c)
> +IF (UNIX)
> +   add_executable (ext_timer_query-time-elapsed time-elapsed.c)
> +ENDIF (UNIX)
> --
> 1.7.3.4
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 


More information about the Piglit mailing list