aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEmil Velikov2018-01-29 08:51:31 -0600
committerEmil Velikov2018-01-31 09:57:58 -0600
commit10e85a8b7f28e80f5184919b2448ade18c19ca21 (patch)
tree874489069d112982fec0f8f2b0c78942cd85e1ce /tests
parentba17673eed0383cc41ed49e8c9841b6b819fdfd3 (diff)
downloadexternal-libdrm-10e85a8b7f28e80f5184919b2448ade18c19ca21.tar.gz
external-libdrm-10e85a8b7f28e80f5184919b2448ade18c19ca21.tar.xz
external-libdrm-10e85a8b7f28e80f5184919b2448ade18c19ca21.zip
tests/amdgpu: add missing config.h include
Otherwise we'll end up without the macros set during configure stage. And effectively error out in sanity tests such as the mmap static assert. To reproduce, do a multilib build - 32bit build on 64bit machine. Cc: Fabio Pedretti <pedretti.fabio@gmail.com> Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Fixes: 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819 Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/vm_tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c
index 7b6dc5d6..502a9405 100644
--- a/tests/amdgpu/vm_tests.c
+++ b/tests/amdgpu/vm_tests.c
@@ -21,6 +21,10 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
24#include "CUnit/Basic.h" 28#include "CUnit/Basic.h"
25 29
26#include "amdgpu_test.h" 30#include "amdgpu_test.h"