added negative testing for device APIs

Change-Id: I7bfcdd777f240d36b29eca987f7bc9da7614d704


[ROCm/clr commit: 977918badf]
This commit is contained in:
Aditya Atluri committed 2016-09-27 11:38:31 -05:00
1 parent bac30c4561
commit d8e4eb476e
3 files changed
+30

No files matched your search

@@ -0,0 +1,10 @@
#include<hip/hip_runtime.h>
#include<hip/hip_runtime_api.h>
#include"hipDeviceUtil.h"
int main()
{
HIP_CHECK(hipSetDevice(0), hipSetDevice);
HIP_CHECK(hipSetDevice(1026), hipSetDevice);
HIP_CHECK(hipSetDevice(-1), hipSetDevice);
}