amdgpu: Add memory over allocation test

Graphics / Mesa 3D Graphics Library / libdrm - Andrey Grodzovsky [amd.com] - 14 November 2017 13:26 EST

Allocates 1 TB of memory. Test is disabled by default since it's triggers OOM killer.

v2: FIx the test to only alloc the BO and assert if return value not equal to -ENOMEM and remove test disable on start.

9ad9b7e9 amdgpu: Add memory over allocation test.
tests/amdgpu/bo_tests.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Upstream: cgit.freedesktop.org


  • Share