tests/gem_reset_stats: Correctly wrap global test code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Feb 2014 11:04:57 +0000 (12:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Feb 2014 11:06:11 +0000 (12:06 +0100)
commita6bc3d91af816f4d979cb6424c6e991362c2a8f8
treedff452af4899520cca0e7ddc067d8600db05bb5d
parent971c7db2c81d0573caf1d35d70f48e6fdace90d0
tests/gem_reset_stats: Correctly wrap global test code

Tests _must_ be able to run as non-root and on non-intel platforms,
otherwise the enumeration is busted (since QA enumerates testcases on
a gpu-less xeon box).

Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_reset_stats.c