mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
tests/gem_close_race: Properly wrap init code in fixtures
Blows up otherwise if there's no intel gpu around. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
349ba5d3e1
commit
a86651fa24
@ -223,9 +223,12 @@ igt_main
|
||||
{
|
||||
igt_skip_on_simulation();
|
||||
|
||||
sprintf(device, "/dev/dri/card%d", drm_get_card());
|
||||
{
|
||||
int fd = open(device, O_RDWR);
|
||||
igt_fixture {
|
||||
int fd;
|
||||
|
||||
sprintf(device, "/dev/dri/card%d", drm_get_card());
|
||||
fd = open(device, O_RDWR);
|
||||
|
||||
igt_assert(fd != -1);
|
||||
devid = intel_get_drm_devid(fd);
|
||||
has_64bit_relocations = intel_gen(devid) >= 8;
|
||||
|
Loading…
x
Reference in New Issue
Block a user