diff options
author | Eric Anholt <[email protected]> | 2019-06-27 15:46:28 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-07-16 12:51:13 -0700 |
commit | bb5801ad98ec0958ff0d2f18df61842b3e1f0fd9 (patch) | |
tree | 1649efddc3c89eac139e430cc0f467bc95100f86 /src/gallium/tests | |
parent | 3630988b1d7ef200a2b3e9b360eb812b84d96afc (diff) |
u_half_test: Turn it into an actual unit test.
You could break the test and meson test wouldn't complain, since we
returned success either way.
Reviewed-by: Thomas Helland <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/tests')
-rw-r--r-- | src/gallium/tests/unit/u_half_test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/unit/u_half_test.c b/src/gallium/tests/unit/u_half_test.c index a53a043bfde..48a9a2d539c 100644 --- 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; + } } |