[newTests]Modified the test as per review comments

[ROCm/clr commit: 19946ca43d]
This commit is contained in:
Phaneendr-kumar Lanka
2017-11-03 10:39:47 +05:30
parent 9486eadfbe
commit 35b9e10294
@@ -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();