[dtests] Added few Negative tests (#1735)

This commit is contained in:
satyanveshd
2020-03-27 14:10:12 +05:30
committed by GitHub
parent 43abf84f54
commit 351d39e6aa
7 changed files with 273 additions and 4 deletions
-4
View File
@@ -2271,8 +2271,6 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) {
auto device = ctx->getWriteableDevice();
if (total) {
*total = device->_props.totalGlobalMem;
} else {
e = hipErrorInvalidValue;
}
if (free) {
@@ -2295,8 +2293,6 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) {
} else {
return ihipLogStatus(hipErrorInvalidValue);
}
} else {
e = hipErrorInvalidValue;
}
} else {