Skip to content

Commit a406b34

Browse files
Fix error return and TEST_PASS for negative SVM tests (KhronosGroup#2027)
Fix error return and TEST_PASS for negative SVM tests Fix review comments from KhronosGroup#1802 Fixes KhronosGroup#1964
1 parent d1434ae commit a406b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_conformance/SVM/test_allocate_shared_buffer_negative.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int test_svm_allocate_shared_buffer_negative(cl_device_id deviceID,
6060
// under construction...
6161
err = create_cl_objects(deviceID, NULL, &context, &program, &queues[0],
6262
&num_devices, CL_DEVICE_SVM_COARSE_GRAIN_BUFFER);
63-
if (err) return -1;
63+
if (err) return err;
6464

6565
size_t size = 1024;
6666

@@ -98,5 +98,5 @@ int test_svm_allocate_shared_buffer_negative(cl_device_id deviceID,
9898
clSVMFree(context, pBufData1);
9999
}
100100

101-
return 0;
101+
return TEST_PASS;
102102
}

0 commit comments

Comments
 (0)