Lines Matching refs:pol
250 struct ipe_policy *pol; in ipe_parser_unsigned_test() local
252 pol = ipe_new_policy(p->policy, strlen(p->policy), NULL, 0); in ipe_parser_unsigned_test()
255 KUNIT_EXPECT_EQ(test, PTR_ERR(pol), p->errno); in ipe_parser_unsigned_test()
259 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pol); in ipe_parser_unsigned_test()
260 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, pol->parsed); in ipe_parser_unsigned_test()
261 KUNIT_EXPECT_STREQ(test, pol->text, p->policy); in ipe_parser_unsigned_test()
262 KUNIT_EXPECT_PTR_EQ(test, NULL, pol->pkcs7); in ipe_parser_unsigned_test()
263 KUNIT_EXPECT_EQ(test, 0, pol->pkcs7len); in ipe_parser_unsigned_test()
265 ipe_free_policy(pol); in ipe_parser_unsigned_test()
278 struct ipe_policy *pol = NULL; in ipe_parser_widestring_test() local
280 pol = ipe_new_policy((const char *)policy, (ARRAY_SIZE(policy) - 1) * 2, NULL, 0); in ipe_parser_widestring_test()
281 KUNIT_EXPECT_TRUE(test, IS_ERR_OR_NULL(pol)); in ipe_parser_widestring_test()
283 ipe_free_policy(pol); in ipe_parser_widestring_test()