Lines Matching refs:checkbuf
82 static int checkbuf(const char* buf, char c, size_t size) { in checkbuf() function
185 EXPECT_EQ(0, checkbuf(dest_kbuf1, DEST_DATA, TEST_BUF1_SIZE)); in TEST_P()
188 EXPECT_EQ(0, checkbuf(dest_kbuf2, DEST_DATA, TEST_BUF2_SIZE)); in TEST_P()
228 EXPECT_EQ(0, checkbuf(src_buf, SRC_DATA, TEST_BUF_SIZE)); in TEST_P()
235 EXPECT_EQ(0, checkbuf(dest_kbuf1 + TEST_BUF_COPY_START, expect1, in TEST_P()
241 EXPECT_EQ(0, checkbuf(dest_kbuf2, expect2, TEST_BUF2_COPY_SIZE)); in TEST_P()
275 EXPECT_EQ(0, checkbuf(dest_buf, DEST_DATA, TEST_BUF_SIZE)); in TEST_P()
306 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, expect1, in TEST_P()
308 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF1_SIZE, expect2, in TEST_P()
317 EXPECT_EQ(0, checkbuf(src_kbuf1, SRC_DATA, TEST_BUF1_SIZE)); in TEST_P()
320 EXPECT_EQ(0, checkbuf(src_kbuf2, SRC_DATA, TEST_BUF2_SIZE)); in TEST_P()
358 EXPECT_EQ(0, checkbuf(dest_buf, DEST_DATA, TEST_BUF_SIZE)); in TEST_P()
389 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, expect1, in TEST_P()
391 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF1_SIZE, expect2, in TEST_P()
400 EXPECT_EQ(0, checkbuf(src_kbuf1, SRC_DATA, TEST_BUF1_SIZE)); in TEST_P()
403 EXPECT_EQ(0, checkbuf(src_kbuf2, SRC_DATA, TEST_BUF2_SIZE)); in TEST_P()
453 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, SRC_DATA, dest_len), in usercopy_test_strlcpy_from_user_inner()
490 EXPECT_EQ(0, checkbuf(src_kbuf1, SRC_DATA, null_off)); in usercopy_test_strlcpy_from_user_inner()
492 EXPECT_EQ(0, checkbuf(src_kbuf1 + null_off + 1, SRC_DATA, in usercopy_test_strlcpy_from_user_inner()
495 EXPECT_EQ(0, checkbuf(src_kbuf1, SRC_DATA, TEST_BUF1_SIZE)); in usercopy_test_strlcpy_from_user_inner()
501 EXPECT_EQ(0, checkbuf(src_kbuf2, SRC_DATA, null_off2)); in usercopy_test_strlcpy_from_user_inner()
503 EXPECT_EQ(0, checkbuf(src_kbuf2 + null_off2 + 1, SRC_DATA, in usercopy_test_strlcpy_from_user_inner()
506 EXPECT_EQ(0, checkbuf(src_kbuf2, SRC_DATA, TEST_BUF2_SIZE)); in usercopy_test_strlcpy_from_user_inner()