From 0026b0a3d9aa75e2b018c8a2be9dc8a1de91bc03 Mon Sep 17 00:00:00 2001 From: Phaneendr-kumar Lanka Date: Fri, 3 Nov 2017 10:39:47 +0530 Subject: [PATCH] [newTests]Modified the test as per review comments [ROCm/hip commit: a764a0980dc0b45adbd3e9968b40a172e2a356f8] --- .../hip/tests/src/runtimeApi/device/hipDeviceGetName.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/src/runtimeApi/device/hipDeviceGetName.cpp b/projects/hip/tests/src/runtimeApi/device/hipDeviceGetName.cpp index 94de10ff4c..0a3dce284e 100644 --- a/projects/hip/tests/src/runtimeApi/device/hipDeviceGetName.cpp +++ b/projects/hip/tests/src/runtimeApi/device/hipDeviceGetName.cpp @@ -30,15 +30,17 @@ THE SOFTWARE. #include "test_common.h" +const int len 256; + int main() { int numDevices = 0; - char name[256]; + char name[len]; hipDevice_t device; HIPCHECK(hipGetDeviceCount(&numDevices)); for(int i=0;i