summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/unit/u_half_test.c9
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;
+ }
}