tests/gem_flink_race: check for expected flink failure code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 06:01:35 +0000 (08:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 06:01:35 +0000 (08:01 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_flink_race.c

index 612f39e..eb144ab 100644 (file)
@@ -61,6 +61,8 @@ static void *thread_fn(void *p)
                ret = ioctl(fd, DRM_IOCTL_GEM_OPEN, &open_struct);
                if (ret == 0)
                        gem_close(fd, open_struct.handle);
+               else
+                       assert(errno == ENOENT);
        }
 
        return (void *)0;