From e52f6a732b43f8a7b868bd17682d88f75b8de23b Mon Sep 17 00:00:00 2001 From: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:15:28 +0000 Subject: [PATCH] Migrate conversions suite to the new test registration framework (#2322) Contributes to #2181. Signed-off-by: Ahmed Hesham --- test_conformance/conversions/test_conversions.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test_conformance/conversions/test_conversions.cpp b/test_conformance/conversions/test_conversions.cpp index c63572c3..82cb5c2d 100644 --- a/test_conformance/conversions/test_conversions.cpp +++ b/test_conformance/conversions/test_conversions.cpp @@ -92,8 +92,7 @@ char appName[64] = "ctest"; int gMultithread = 1; -int test_conversions(cl_device_id device, cl_context context, - cl_command_queue queue, int num_elements) +REGISTER_TEST(conversions) { if (argCount) { @@ -108,13 +107,6 @@ int test_conversions(cl_device_id device, cl_context context, } -test_definition test_list[] = { - ADD_TEST(conversions), -}; - -const int test_num = ARRAY_SIZE(test_list); - - int main(int argc, const char **argv) { int error; @@ -148,8 +140,9 @@ int main(int argc, const char **argv) gMTdata = init_genrand(gRandomSeed); const char *arg[] = { argv[0] }; - int ret = - runTestHarnessWithCheck(1, arg, test_num, test_list, true, 0, InitCL); + int ret = runTestHarnessWithCheck( + 1, arg, test_registry::getInstance().num_tests(), + test_registry::getInstance().definitions(), true, 0, InitCL); free_mtdata(gMTdata); if (gQueue)