Message ID | 1314206379-10595-1-git-send-email-paulo.r.zanoni@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, 24 Aug 2011 14:19:39 -0300, Paulo Zanoni <przanoni@gmail.com> wrote: > Previously, "make check" failed because the main() function was not > defined. You need to return 77 for make check to ignore the failure. -Chris
diff --git a/tests/gem_vmap_blits.c b/tests/gem_vmap_blits.c index c2ba390..947f026 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 1; +} #else #define WIDTH 512
Previously, "make check" failed because the main() function was not defined. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> --- We could also try to move the logic outside the file and let autoconf test for vmap, so we wouldn't even try to compile the file. If you prefer, I can implement this too. tests/gem_vmap_blits.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)