mesa-drm/tests
Vlad Zahorodnii 1e9b50f1d5 xf86drm: Fix drmDevicesEqual() for nodes on the faux bus
The name string is allocated on the heap, so the memcmp() function will
not return 0 even though two nodes share the same device name.

Also, the device info will not be populated when counting the available
drm devices. For example, using drmGetDevices2(0, NULL, 0). In that
case, drmGetDevices2() will eventually crash in drmDevicesEqual() while
merging nodes belonging to the same device due to passing null pointers
to memcmp().

This change adds faux device name to businfo. The businfo is populated
regardless whether device info is needed, which is needed to make the
drmGetDevices2(0, NULL, 0) case work. drmFauxBusInfo can also be used
with the memcmp() function to match the other cases in drmDevicesEqual().

Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
2025-10-14 19:38:10 +03:00
..
amdgpu tests/amdgpu: fix compile error with gcc14 2024-05-27 10:37:25 +08:00
etnaviv tests/etnaviv_2d_test: check whether the rendering is correct 2020-12-09 16:00:51 +01:00
exynos fix FTBS on FreeBSD (or non-Linux in general) 2024-06-24 17:24:28 +00:00
modeprint tests: use drmModeGetConnectorTypeName 2022-07-02 20:13:29 +00:00
modetest modetest: util: add seed argument for noise patterns 2025-06-09 09:31:02 +02:00
nouveau use standard __typeof__() instead of GNU extension typeof() 2022-01-19 16:08:31 -08:00
proptest tests: Make modetest and proptest cc_binary in Android.bp 2024-08-01 10:09:05 -04:00
radeon Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
tegra tests: tegra: Add VIC flip test 2022-02-23 16:06:49 +01:00
ttmtest fix various typos 2019-04-17 18:23:25 +01:00
util modetest: fix build error on is_power_of_two() 2025-07-14 14:45:14 +08:00
vbltest meson: always define whether headers exist 2020-01-23 17:00:12 +00:00
Android.bp modetest: Make modetest availble to vendor on Android 2024-10-29 10:49:10 -06:00
drmdevice.c xf86drm: Fix drmDevicesEqual() for nodes on the faux bus 2025-10-14 19:38:10 +03:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
meson.build libkms: Remove libkms completely 2022-04-15 22:40:29 +00:00