projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3630988
)
u_half_test: Turn it into an actual unit test.
author
Eric Anholt
<eric@anholt.net>
Thu, 27 Jun 2019 22:46:28 +0000
(15:46 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Jul 2019 19:51:13 +0000
(12:51 -0700)
You could break the test and meson test wouldn't complain, since we
returned success either way.
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/gallium/tests/unit/u_half_test.c
patch
|
blob
|
history
diff --git
a/src/gallium/tests/unit/u_half_test.c
b/src/gallium/tests/unit/u_half_test.c
index a53a043bfdeca4f3c0328ab7e02365b4f60a5507..48a9a2d539c2730d04a847aef3e411e0516ec7e8 100644
(file)
--- a/
src/gallium/tests/unit/u_half_test.c
+++ b/
src/gallium/tests/unit/u_half_test.c
@@
-26,10
+26,11
@@
main(int argc, char **argv)
}
}
- if(roundtrip_fails)
+ if(roundtrip_fails)
{
printf("Failure! %u/65536 half floats failed a conversion to float and back.\n", roundtrip_fails);
- else
+ return 1;
+ } else {
printf("Success!\n");
-
- return 0;
+ return 0;
+ }
}