[RFC libdrm 5/6] tegra: Add helper library for tests
Erik Faye-Lund
kusmabite at gmail.com
Wed Feb 19 12:54:06 PST 2014
On Wed, Feb 19, 2014 at 5:04 PM, Thierry Reding
<thierry.reding at gmail.com> wrote:
> diff --git a/tests/tegra/drm-test-tegra.h b/tests/tegra/drm-test-tegra.h
> new file mode 100644
> index 000000000000..d1cb6b1ee440
> --- /dev/null
> +++ b/tests/tegra/drm-test-tegra.h
> +int drm_open(const char *path)
> +{
> + int fd, err;
> +
> + fd = open(path, O_RDWR);
> + if (fd < 0)
> + return -errno;
> +
> + err = drmSetMaster(fd);
Hmmpf, do we really need modesetting for all tests? Can't tests opt-in
on that instead?
More information about the dri-devel
mailing list