[dtests] Added few Negative tests (#1735)
Tá an tiomantas seo le fáil i:
1 tuismitheoir
6ab1e864b6
tiomantas
4554bbd9f9
7 comhad athraithe
+273
-4
Níor tháinig aon chomhaid le do chuardach
@@ -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 {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir