[Beignet] [PATCH] remove "\n" in output message when test is failed
Guo Yejun
yejun.guo at intel.com
Mon Aug 1 01:45:37 UTC 2016
otherwise, "[FAILED]" and the test name is not in the same line.
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
utests/builtin_lgamma.cpp | 2 +-
utests/builtin_lgamma_r.cpp | 2 +-
utests/builtin_tgamma.cpp | 2 +-
utests/image_1D_buffer.cpp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/utests/builtin_lgamma.cpp b/utests/builtin_lgamma.cpp
index 876699a..57945de 100644
--- a/utests/builtin_lgamma.cpp
+++ b/utests/builtin_lgamma.cpp
@@ -29,7 +29,7 @@ void builtin_lgamma(void) {
float cpu = lgamma(src[i]);
float gpu = dst[i];
if (fabsf(cpu - gpu) >= 1e-3) {
- printf("%f %f %f\n", src[i], cpu, gpu);
+ printf("%f %f %f", src[i], cpu, gpu);
OCL_ASSERT(0);
}
}
diff --git a/utests/builtin_lgamma_r.cpp b/utests/builtin_lgamma_r.cpp
index b6e5d0e..0258767 100644
--- a/utests/builtin_lgamma_r.cpp
+++ b/utests/builtin_lgamma_r.cpp
@@ -34,7 +34,7 @@ void builtin_lgamma_r(void) {
int gpu_signp = ((int*)buf_data[2])[i];
float gpu = dst[i];
if (cpu_signp != gpu_signp || fabsf(cpu - gpu) >= 1e-3) {
- printf("%f %f %f\n", src[i], cpu, gpu);
+ printf("%f %f %f", src[i], cpu, gpu);
OCL_ASSERT(0);
}
}
diff --git a/utests/builtin_tgamma.cpp b/utests/builtin_tgamma.cpp
index 204f49e..eb6bdd7 100644
--- a/utests/builtin_tgamma.cpp
+++ b/utests/builtin_tgamma.cpp
@@ -46,7 +46,7 @@ void builtin_tgamma(void)
if (std::isinf(cpu)) {
OCL_ASSERT(std::isinf(dst[i]));
} else if (fabsf(cpu - dst[i]) >= cl_FLT_ULP(cpu) * ULPSIZE_FACTOR) {
- printf("%f %f %f\n", src[i], cpu, dst[i]);
+ printf("%f %f %f", src[i], cpu, dst[i]);
OCL_ASSERT(0);
}
}
diff --git a/utests/image_1D_buffer.cpp b/utests/image_1D_buffer.cpp
index f2eb7a3..66eb6e7 100644
--- a/utests/image_1D_buffer.cpp
+++ b/utests/image_1D_buffer.cpp
@@ -55,7 +55,7 @@ void image_1D_buffer(void)
OCL_MAP_BUFFER(1);
for (uint32_t i = 0; i < buffer_sz; i++) {
if (((uint32_t*)buf_data[1])[i] != ((uint32_t*)buf_data[0])[i])
- printf("i %d expected %x got %x \n", i, ((uint32_t*)buf_data[0])[i], ((uint32_t*)buf_data[1])[i]);
+ printf("i %d expected %x got %x", i, ((uint32_t*)buf_data[0])[i], ((uint32_t*)buf_data[1])[i]);
OCL_ASSERT(((uint32_t*)buf_data[1])[i] == ((uint32_t*)buf_data[0])[i]);
}
OCL_UNMAP_BUFFER(0);
--
1.9.1
More information about the Beignet
mailing list