[newTests]Modified the test as per review comments

这个提交包含在:
Phaneendr-kumar Lanka
2017-11-03 10:39:47 +05:30
父节点 511de63bcb
当前提交 a764a0980d
@@ -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<numDevices;i++){
HIPCHECK(hipDeviceGet(&device,i));
HIPCHECK(hipDeviceGetName(name,256,device));
HIPCHECK(hipDeviceGetName(name,len,device));
HIPASSERT(name != "");
}
passed();