From d16dd3a0f896d7d7060427a4547d19472a0ea492 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 4 Apr 2013 11:06:37 +0200 Subject: [PATCH] tests/prime_udl: proper return values ... especially skip properly if there's no udl device. Signed-off-by: Daniel Vetter --- tests/prime_udl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/prime_udl.c b/tests/prime_udl.c index c79d7f2..97aeee0 100644 --- a/tests/prime_udl.c +++ b/tests/prime_udl.c @@ -156,7 +156,7 @@ int main(int argc, char **argv) if (udl_fd == -1 && intel_fd == -1) { fprintf(stderr,"failed to find intel and udl GPU\n"); - return -1; + return 77; } /* set up intel bufmgr */ @@ -169,8 +169,10 @@ int main(int argc, char **argv) /* create an object on the i915 */ ret = test1(); - if (ret) + if (ret) { fprintf(stderr,"prime_test: failed test 1\n"); + return -1; + } ret = test2(); if (ret) -- 2.7.4