summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2016-08-01 09:45:37 +0800
committerYang Rong <rong.r.yang@intel.com>2016-08-03 18:20:22 +0800
commitaa077d9279cedc28704d02444e26fab0f77f3bbd (patch)
tree76a2bb0002158fa04c7ecd3a5d9e8f991c72752a
parentc454c8f4f3ae248093fb09672fd40e93c0dffc59 (diff)
remove "\n" in output message when test is failed
otherwise, "[FAILED]" and the test name is not in the same line. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--utests/builtin_lgamma.cpp2
-rw-r--r--utests/builtin_lgamma_r.cpp2
-rw-r--r--utests/builtin_tgamma.cpp2
-rw-r--r--utests/image_1D_buffer.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/utests/builtin_lgamma.cpp b/utests/builtin_lgamma.cpp
index 876699ab..57945def 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 b6e5d0ee..0258767d 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 204f49ed..eb6bdd7b 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 f2eb7a3b..66eb6e79 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);