util: Add a few basic tests for linear_alloc
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 18 Sep 2023 01:32:28 +0000 (18:32 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 17:26:17 +0000 (17:26 +0000)
commit1020cf8a825c252ed920ea9fc65a52944e624174
tree0974e70c1e05f0e4edcc90080318a0f1b2fe84ad
parent591db9a9a54d9d5d4d34e1f0c6b680a4933b401a
util: Add a few basic tests for linear_alloc

Not comprehensive, but those were the ones used to work on the
previous linear_alloc changes.  Also having a test already
set up lower the barrier to add more tests for future in case of
bugs.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25280>
src/util/meson.build
src/util/tests/linear_test.cpp [new file with mode: 0644]