summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <przanoni@gmail.com>2011-08-24 14:57:31 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-09-06 21:47:15 +0200
commit2a7778d4e3f4730572e4f22c39c85787daa73469 (patch)
treede887ff000c4226d53d9e3882cf2a962f4d51dce /tests
parent15cb28218786ae80101ad0f6cc5a21c1ad9e8d3e (diff)
gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not defined
Previously, "make check" failed because the main() function was not defined. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Tested-By: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_vmap_blits.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gem_vmap_blits.c b/tests/gem_vmap_blits.c
index c2ba390..05550a4 100644
--- a/tests/gem_vmap_blits.c
+++ b/tests/gem_vmap_blits.c
@@ -53,6 +53,11 @@
#if !defined(I915_PARAM_HAS_VMAP)
#warning No vmap support in drm, skipping
+int main(int argc, char **argv)
+{
+ fprintf(stderr, "No vmap support in drm.\n");
+ return 77;
+}
#else
#define WIDTH 512