Skip to content

Commit

Permalink
Fix error return and TEST_PASS for negative SVM tests (#2027)
Browse files Browse the repository at this point in the history
Fix error return and TEST_PASS for negative SVM tests
Fix review comments from #1802 

Fixes #1964
  • Loading branch information
niranjanjoshi121 authored Aug 6, 2024
1 parent d1434ae commit a406b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/SVM/test_allocate_shared_buffer_negative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -98,5 +98,5 @@ int test_svm_allocate_shared_buffer_negative(cl_device_id deviceID,
clSVMFree(context, pBufData1);
}

return 0;
return TEST_PASS;
}

0 comments on commit a406b34

Please sign in to comment.