Migrate pipes suite to the new test registration framework (#2302)

Contributes to #2181

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2025-03-09 09:42:10 +00:00
committed by GitHub
parent 521d067083
commit 5b47d4b19f
8 changed files with 296 additions and 375 deletions

View File

@@ -20,8 +20,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "procs.h"
#include "harness/testHarness.h"
#include "harness/errorHelpers.h"
#include "harness/typeWrappers.h"
#define TEST_PRIME_INT ((1<<16)+1)
@@ -77,7 +78,7 @@ static int verify_result(void *ptr1, void *ptr2, int n)
return 0;
}
int test_pipe_query_functions(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements)
REGISTER_TEST(pipe_query_functions)
{
clMemWrapper pipe;
clMemWrapper buffers[4];
@@ -252,4 +253,3 @@ int test_pipe_query_functions(cl_device_id deviceID, cl_context context, cl_comm
}
return 0;
}