mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
tests/prime_udl: proper return values
... especially skip properly if there's no udl device. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
16e44f5499
commit
d16dd3a0f8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user