Fix error return and TEST_PASS for negative SVM tests (#2027)
Some checks failed
Presubmit / Build ubuntu-22.04 gl (push) Failing after 2s
Presubmit / Build ubuntu-22.04 aarch64 debug (push) Failing after 2s
Presubmit / Build ubuntu-22.04 arm (push) Failing after 2s
Presubmit / Check code format (push) Failing after 5m1s
Presubmit / Build macos-latest (push) Has been cancelled
Presubmit / Build windows-latest (push) Has been cancelled

Fix error return and TEST_PASS for negative SVM tests
Fix review comments from #1802 

Fixes #1964
This commit is contained in:
niranjanjoshi121 2024-08-06 22:50:21 +05:30 committed by GitHub
parent d1434ae5aa
commit a406b34091
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ int test_svm_allocate_shared_buffer_negative(cl_device_id deviceID,
// under construction...
err = create_cl_objects(deviceID, NULL, &context, &program, &queues[0],
&num_devices, CL_DEVICE_SVM_COARSE_GRAIN_BUFFER);
if (err) return -1;
if (err) return err;
size_t size = 1024;
@ -98,5 +98,5 @@ int test_svm_allocate_shared_buffer_negative(cl_device_id deviceID,
clSVMFree(context, pBufData1);
}
return 0;
return TEST_PASS;
}