Extended printf test to verify length sub-specifiers (#2083)

According to work plan for issue #1058
This commit is contained in:
Marcin Hajder
2024-10-08 17:38:18 +02:00
committed by GitHub
parent 9cf439488a
commit d339fd4356
3 changed files with 137 additions and 10 deletions

View File

@@ -1029,6 +1029,12 @@ int test_mixed_format_random(cl_device_id deviceID, cl_context context,
return doTest(gQueue, gContext, TYPE_MIXED_FORMAT_RANDOM, deviceID);
}
int test_length_specifier(cl_device_id deviceID, cl_context context,
cl_command_queue queue, int num_elements)
{
return doTest(gQueue, gContext, TYPE_LENGTH_SPECIFIER, deviceID);
}
int test_buffer_size(cl_device_id deviceID, cl_context context,
cl_command_queue queue, int num_elements)
{
@@ -1055,15 +1061,25 @@ int test_buffer_size(cl_device_id deviceID, cl_context context,
}
test_definition test_list[] = {
ADD_TEST(int), ADD_TEST(long),
ADD_TEST(half), ADD_TEST(half_limits),
ADD_TEST(float), ADD_TEST(float_limits),
ADD_TEST(double), ADD_TEST(double_limits),
ADD_TEST(octal), ADD_TEST(unsigned),
ADD_TEST(hexadecimal), ADD_TEST(char),
ADD_TEST(string), ADD_TEST(format_string),
ADD_TEST(vector), ADD_TEST(address_space),
ADD_TEST(buffer_size), ADD_TEST(mixed_format_random),
ADD_TEST(int),
ADD_TEST(long),
ADD_TEST(half),
ADD_TEST(half_limits),
ADD_TEST(float),
ADD_TEST(float_limits),
ADD_TEST(double),
ADD_TEST(double_limits),
ADD_TEST(octal),
ADD_TEST(unsigned),
ADD_TEST(hexadecimal),
ADD_TEST(char),
ADD_TEST(string),
ADD_TEST(format_string),
ADD_TEST(vector),
ADD_TEST(address_space),
ADD_TEST(buffer_size),
ADD_TEST(mixed_format_random),
ADD_TEST(length_specifier),
};
const int test_num = ARRAY_SIZE( test_list );