From a764a0980dc0b45adbd3e9968b40a172e2a356f8 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 --- tests/src/runtimeApi/device/hipDeviceGetName.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/src/runtimeApi/device/hipDeviceGetName.cpp b/tests/src/runtimeApi/device/hipDeviceGetName.cpp index 94de10ff4c..0a3dce284e 100644 --- a/tests/src/runtimeApi/device/hipDeviceGetName.cpp +++ b/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