Searched refs:test_data1 (Results 1 – 2 of 2) sorted by relevance
/external/coreboot/tests/lib/ |
D | memcmp-test.c | 13 const char test_data1[] = "TEST_DATA @4321 !@#$%^&*\\/"; variable 14 const size_t test_data1_sz = sizeof(test_data1); 21 assert_int_equal(sizeof(test_data1), test_data1_sz); in test_data_correctness() 28 const int res_cb = cb_memcmp(test_data1, test_data1, test_data1_sz); in test_memcmp_equal() 29 const int res_std = memcmp(test_data1, test_data1, test_data1_sz); in test_memcmp_equal() 37 const int res_cb = cb_memcmp(test_data1, test_data2, test_data1_sz); in test_memcmp_first_not_matching_lower() 38 const int res_std = memcmp(test_data1, test_data2, test_data1_sz); in test_memcmp_first_not_matching_lower() 46 const int res_cb = cb_memcmp(test_data2, test_data1, test_data1_sz); in test_memcmp_first_not_matching_higher() 47 const int res_std = memcmp(test_data2, test_data1, test_data1_sz); in test_memcmp_first_not_matching_higher() 55 const int res_cb = cb_memcmp(test_data1, test_data2, 0); in test_memcmp_zero_size() [all …]
|
D | memchr-test.c | 7 static const char test_data1[] = variable 9 static const size_t test_data1_sz = sizeof(test_data1); 35 void *v1 = memchr(test_data1, 'A', test_data1_sz); in test_memchr_existing_value() 36 void *v2 = memchr(test_data1 + 26, 'A', test_data1_sz - 26); in test_memchr_existing_value() 41 assert_ptr_equal(v1, &test_data1[26]); in test_memchr_existing_value() 55 void *v1 = memchr(test_data1, '9', test_data1_sz); in test_memchr_last_character_in_string() 56 void *v2 = memchr(&test_data1[test_data1_sz - 2], '9', 2); in test_memchr_last_character_in_string() 63 assert_ptr_equal(v1, &test_data1[test_data1_sz - 2]); in test_memchr_last_character_in_string() 73 assert_null(memchr(test_data1, '@', test_data1_sz)); in test_memchr_nonexistent_value()
|