util: always enable timespec_test.cpp
c11/time.h always contains `struct timespec` now Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15497>
This commit is contained in:
parent
5abf590c71
commit
1cc1ebdc46
|
@ -340,6 +340,7 @@ if with_tests
|
|||
'tests/roundeven_test.cpp',
|
||||
'tests/set_test.cpp',
|
||||
'tests/sparse_array_test.cpp',
|
||||
'tests/timespec_test.cpp',
|
||||
'tests/u_atomic_test.cpp',
|
||||
'tests/u_debug_stack_test.cpp',
|
||||
'tests/u_printf_test.cpp',
|
||||
|
@ -354,12 +355,6 @@ if with_tests
|
|||
)
|
||||
endif
|
||||
|
||||
if cc.has_header('sys/time.h') # MinGW has this, but Vanilla windows doesn't
|
||||
files_util_tests += files(
|
||||
'tests/timespec_test.cpp'
|
||||
)
|
||||
endif
|
||||
|
||||
# FIXME: this test crashes on windows
|
||||
if host_machine.system() != 'windows'
|
||||
files_util_tests += files(
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "c11/time.h"
|
||||
#include "macros.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000
|
||||
|
|
Loading…
Reference in New Issue