mesa/src/util/tests
David Heidelberg 46091832d8 util/process_test: make the error variable static
Make the `error` variable static to prevent a clash with
the glibc error() function when LTO is used.

Fixes the LTO build.
Otherwise, it'll fail in the linking phase with a conflict:
```
[411/2321] Linking target src/util/process_test
FAILED: src/util/process_test
c++  -o src/util/process_test src/util/process_test.p/tests_process_test.c.o -flto -Wl,--as-needed -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--start-group src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.a src/c11/impl/libmesa_util_c11.a subprojects/perfetto/libperfetto.a /usr/lib/x86_64-linux-gnu/libz.so -pthread -lm -ldl /usr/lib/x86_64-linux-gnu/libunwind.so -Wl,--end-group
mold: error: symbol type mismatch: error
>>> defined in /tmp/process_test.SLc9I6.ltrans0.ltrans.o as STT_OBJECT
>>> defined in /lib/x86_64-linux-gnu/libc.so.6 as STT_FUNC
```

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21511>
2023-02-24 13:30:09 +01:00
..
drirc_configdir xmlconfig_test: add unit test for executable_regexp 2021-11-02 02:21:00 +00:00
drirc_home xmlconfig_test: add unit test for executable_regexp 2021-11-02 02:21:00 +00:00
format meson: replace deprecated meson.get_cross_property(...) with meson.get_external_property(...) 2022-12-01 22:09:55 +00:00
hash_table util: normalize include files under src/util/*.h with util/ prefix in mesa code base 2022-11-10 06:27:25 +00:00
perf common/utrace: Prefix all environment variables with MESA_ 2022-11-11 13:50:56 +00:00
vma util: normalize include files under src/util/*.h with util/ prefix in mesa code base 2022-11-10 06:27:25 +00:00
bitset_test.cpp util/bitset: Support larger ranges in BITSET_TEST/CLEAR_RANGE 2022-05-10 11:23:14 -05:00
blob_test.cpp util: Change blob_test to use macro from mesa-gtest-extras.h 2021-11-08 17:42:18 +00:00
cache_test.cpp util/mesa-db: Introduce multipart mesa-db cache 2023-02-01 02:47:30 +00:00
dag_test.cpp util/dag: Add dag_add_edge_max_data 2021-11-17 13:41:47 +00:00
fast_idiv_by_const_test.cpp util: Move tests in single file directories to tests/ 2021-10-20 21:40:31 -07:00
fast_urem_by_const_test.cpp util: Move tests in single file directories to tests/ 2021-10-20 21:40:31 -07:00
half_float_test.cpp util: fix test on msvc 2022-05-03 19:33:20 +00:00
int_min_max.cpp util: Add and use functions to calculate min and max int for a size 2021-08-03 12:55:02 -07:00
mesa-sha1_test.cpp util: Fix [-Wdeprecated-declarations] in mesa-sha1_test.cpp 2022-08-23 15:19:16 +00:00
os_mman_test.cpp util: Add tests for os_mman.h and util_get_process_name_may_override 2022-11-15 19:55:01 +00:00
process_test.c util/process_test: make the error variable static 2023-02-24 13:30:09 +01:00
rb_tree_test.cpp util: Move test sources to tests/ directory 2021-10-20 21:40:31 -07:00
register_allocate_test.cpp util/ra: Fix deserialization of register sets 2021-11-10 22:57:57 +00:00
roundeven_test.cpp util: Move test sources to tests/ directory 2021-10-20 21:40:31 -07:00
set_test.cpp util: Move tests in single file directories to tests/ 2021-10-20 21:40:31 -07:00
sparse_array_test.cpp util: Convert sparse array multithread test to use gtest 2021-10-20 21:40:31 -07:00
string_buffer_test.cpp util: Move tests in single file directories to tests/ 2021-10-20 21:40:31 -07:00
timespec_test.cpp util: Add unittest for timespec_get 2022-06-09 17:23:34 +00:00
u_atomic_test.cpp util: Implement atomic operations consistently across compilers and testing for it 2022-10-13 13:51:18 +00:00
u_call_once_test.cpp util: Add util_call_once for optimize call to util_call_once_with_context out for hot path 2022-09-22 04:16:29 +00:00
u_debug_stack_test.cpp util: Fixes -Wundef in u_debug_stack_test.cpp 2022-11-24 04:33:07 +00:00
u_debug_test.cpp util: Improve prototype of debug_get_num_option and debug_get_flags_option 2022-12-16 19:30:19 +00:00
u_printf_test.cpp util: Fixes memory leak in u_printf_test.cpp 2022-08-12 18:06:36 +00:00
u_qsort_test.cpp util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
vector_test.cpp util: Move tests in single file directories to tests/ 2021-10-20 21:40:31 -07:00
xmlconfig.cpp util/xmlconfig: add MESA_DRICONF_EXECUTABLE_OVERRIDE 2023-01-31 22:02:58 +00:00