From a406b340913f622da089b00f284a597656c10239 Mon Sep 17 00:00:00 2001 From: niranjanjoshi121 <43807392+niranjanjoshi121@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:50:21 +0530 Subject: [PATCH] Fix error return and TEST_PASS for negative SVM tests (#2027) Fix error return and TEST_PASS for negative SVM tests Fix review comments from #1802 Fixes #1964 --- test_conformance/SVM/test_allocate_shared_buffer_negative.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/SVM/test_allocate_shared_buffer_negative.cpp b/test_conformance/SVM/test_allocate_shared_buffer_negative.cpp index 07066503..852242dd 100644 --- a/test_conformance/SVM/test_allocate_shared_buffer_negative.cpp +++ b/test_conformance/SVM/test_allocate_shared_buffer_negative.cpp @@ -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; }