projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e44f5
)
tests/prime_udl: proper return values
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 4 Apr 2013 09:06:37 +0000
(11:06 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 4 Apr 2013 09:06:37 +0000
(11:06 +0200)
... especially skip properly if there's no udl device.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/prime_udl.c
patch
|
blob
|
history
diff --git
a/tests/prime_udl.c
b/tests/prime_udl.c
index
c79d7f2
..
97aeee0
100644
(file)
--- 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)