Home
last modified time | relevance | path

Searched refs:good_buf (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c95 char *good_buf; /* a pointer to the correct data */ variable
315 if (good_buf) { in report_failure()
316 save_buffer(good_buf, file_size, fsxgoodfd); in report_failure()
337 if (memcmp(good_buf + offset, temp_buf, size) != 0) { in check_buffers()
342 c = good_buf[offset]; in check_buffers()
348 short_at(&good_buf[offset]), bad); in check_buffers()
707 void gendata(char *original_buf, char *good_buf, unsigned offset, unsigned size) in gendata() argument
710 good_buf[offset] = testcalls % 256; in gendata()
712 good_buf[offset] += original_buf[offset]; in gendata()
736 gendata(original_buf, good_buf, offset, size); in dowrite()
[all …]
/external/selinux/libsemanage/tests/
Dtest_semanage_store.c309 char *source_buf, *sorted_buf = NULL, *good_buf, *bad_buf; in test_semanage_nc_sort() local
334 good_buf = in test_semanage_nc_sort()
353 CU_ASSERT_STRING_EQUAL(sorted_buf, good_buf); in test_semanage_nc_sort()
370 munmap(good_buf, good_buf_len); in test_semanage_nc_sort()