[PATCH v2 libdrm 3/7] tegra: Add simple test for drm_tegra_open()

Thierry Reding thierry.reding at gmail.com
Fri May 2 07:17:39 PDT 2014


On Mon, Apr 28, 2014 at 09:49:48PM +0200, Erik Faye-Lund wrote:
> On Thu, Apr 10, 2014 at 7:20 PM, Erik Faye-Lund <kusmabite at gmail.com> wrote:
> > On Wed, Apr 9, 2014 at 1:40 PM, Thierry Reding <thierry.reding at gmail.com> wrote:
> >> From: Thierry Reding <treding at nvidia.com>
> >>
> >> This test opens a device, dumps the version information and checks that
> >> a Tegra DRM context can be opened on it.
> >>
> >> Signed-off-by: Thierry Reding <treding at nvidia.com>
> >
> > Looks good!
> 
> Actually, "make check" doesn't work here:
> 
> kusma at localhost:~/src/libdrm$ make -C tests/tegra/ check
> make: Entering directory `/home/kusma/src/libdrm/tests/tegra'
> make  openclose gr2d-fill
> make[1]: Entering directory `/home/kusma/src/libdrm/tests/tegra'
> make[1]: `openclose' is up to date.
> make[1]: `gr2d-fill' is up to date.
> make[1]: Leaving directory `/home/kusma/src/libdrm/tests/tegra'
> make  check-TESTS
> make[1]: Entering directory `/home/kusma/src/libdrm/tests/tegra'
> FAIL: openclose
> failed to open DRM device (null): Bad address
> FAIL: gr2d-fill
> =======================================================================
> 2 of 2 tests failed
> Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=DRI
> =======================================================================
> make[1]: *** [check-TESTS] Error 1
> make[1]: Leaving directory `/home/kusma/src/libdrm/tests/tegra'
> make: *** [check-am] Error 2
> make: Leaving directory `/home/kusma/src/libdrm/tests/tegra'

I've modified the tests to default to /dev/dri/card0 if no device was
specified on the command-line.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140502/d7cd45d7/attachment-0001.sig>


More information about the dri-devel mailing list