util/test: Use MAX_PATH on Windows
authorDaniel Stone <daniels@collabora.com>
Thu, 26 Mar 2020 13:01:58 +0000 (13:01 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 27 Mar 2020 10:32:47 +0000 (10:32 +0000)
commitbc98de4d14f9c099e47a7de6efc3766823ca3f54
tree2408d7e13f71884b4b9819ceace43af2a0341c85
parent8f573bdaaa7c41b19edf99e891665378b76d8fd4
util/test: Use MAX_PATH on Windows

Windows provides MAX_PATH rather than PATH_MAX for the maximum allowable
path length. This is not a limit on the length of filename which can
exist on the filesystem, but a length on the length of path which can be
passed to Win32 API calls.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Fixes: f8f1413070a ("util/u_process: add util_get_process_exec_path")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4304>
src/util/process_test.c