Lines Matching full:wrap
535 } wrap; in string_test_strtomem() local
537 memset(&wrap, 0xFF, sizeof(wrap)); in string_test_strtomem()
538 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in string_test_strtomem()
540 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in string_test_strtomem()
544 strtomem(wrap.output, input); in string_test_strtomem()
545 KUNIT_EXPECT_EQ(test, wrap.canary1, ULONG_MAX); in string_test_strtomem()
546 KUNIT_EXPECT_EQ(test, wrap.output[0], input[0]); in string_test_strtomem()
547 KUNIT_EXPECT_EQ(test, wrap.output[1], input[1]); in string_test_strtomem()
548 for (size_t i = 2; i < sizeof(wrap.output); i++) in string_test_strtomem()
549 KUNIT_EXPECT_EQ(test, wrap.output[i], 0xFF); in string_test_strtomem()
550 KUNIT_EXPECT_EQ(test, wrap.canary2, ULONG_MAX); in string_test_strtomem()
553 memset(&wrap, 0xFF, sizeof(wrap)); in string_test_strtomem()
554 strtomem(wrap.output, truncate); in string_test_strtomem()
555 KUNIT_EXPECT_EQ(test, wrap.canary1, ULONG_MAX); in string_test_strtomem()
556 for (size_t i = 0; i < sizeof(wrap.output); i++) in string_test_strtomem()
557 KUNIT_EXPECT_EQ(test, wrap.output[i], truncate[i]); in string_test_strtomem()
558 KUNIT_EXPECT_EQ(test, wrap.canary2, ULONG_MAX); in string_test_strtomem()
561 memset(&wrap, 0xFF, sizeof(wrap)); in string_test_strtomem()
562 strtomem_pad(wrap.output, input, 0xAA); in string_test_strtomem()
563 KUNIT_EXPECT_EQ(test, wrap.canary1, ULONG_MAX); in string_test_strtomem()
564 KUNIT_EXPECT_EQ(test, wrap.output[0], input[0]); in string_test_strtomem()
565 KUNIT_EXPECT_EQ(test, wrap.output[1], input[1]); in string_test_strtomem()
566 for (size_t i = 2; i < sizeof(wrap.output); i++) in string_test_strtomem()
567 KUNIT_EXPECT_EQ(test, wrap.output[i], 0xAA); in string_test_strtomem()
568 KUNIT_EXPECT_EQ(test, wrap.canary2, ULONG_MAX); in string_test_strtomem()
571 memset(&wrap, 0xFF, sizeof(wrap)); in string_test_strtomem()
572 strtomem(wrap.output, truncate); in string_test_strtomem()
573 KUNIT_EXPECT_EQ(test, wrap.canary1, ULONG_MAX); in string_test_strtomem()
574 for (size_t i = 0; i < sizeof(wrap.output); i++) in string_test_strtomem()
575 KUNIT_EXPECT_EQ(test, wrap.output[i], truncate[i]); in string_test_strtomem()
576 KUNIT_EXPECT_EQ(test, wrap.canary2, ULONG_MAX); in string_test_strtomem()