From 35b9e10294815c976a2d8cdb5c486ce3fcb8fc86 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/clr commit: 19946ca43d06d869f05333b122b40e64a43d8e5c] --- .../hipamd/tests/src/runtimeApi/device/hipDeviceGetName.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetName.cpp b/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetName.cpp index 94de10ff4c..0a3dce284e 100644 --- a/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetName.cpp +++ b/projects/clr/hipamd/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