Lines Matching refs:success

321 	bool success;  in policy_unpack_test_unpack_nameX_with_null_name()  local
325 success = aa_unpack_nameX(puf->e, AA_U32, NULL); in policy_unpack_test_unpack_nameX_with_null_name()
327 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_null_name()
335 bool success; in policy_unpack_test_unpack_nameX_with_wrong_code() local
339 success = aa_unpack_nameX(puf->e, AA_BLOB, NULL); in policy_unpack_test_unpack_nameX_with_wrong_code()
341 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_nameX_with_wrong_code()
350 bool success; in policy_unpack_test_unpack_nameX_with_name() local
354 success = aa_unpack_nameX(puf->e, AA_U32, name); in policy_unpack_test_unpack_nameX_with_name()
356 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_nameX_with_name()
365 bool success; in policy_unpack_test_unpack_nameX_with_wrong_name() local
369 success = aa_unpack_nameX(puf->e, AA_U32, name); in policy_unpack_test_unpack_nameX_with_wrong_name()
371 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_nameX_with_wrong_name()
439 bool success; in policy_unpack_test_unpack_u32_with_null_name() local
444 success = aa_unpack_u32(puf->e, &data, NULL); in policy_unpack_test_unpack_u32_with_null_name()
446 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_null_name()
456 bool success; in policy_unpack_test_unpack_u32_with_name() local
461 success = aa_unpack_u32(puf->e, &data, name); in policy_unpack_test_unpack_u32_with_name()
463 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u32_with_name()
473 bool success; in policy_unpack_test_unpack_u32_out_of_bounds() local
479 success = aa_unpack_u32(puf->e, &data, name); in policy_unpack_test_unpack_u32_out_of_bounds()
481 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_u32_out_of_bounds()
489 bool success; in policy_unpack_test_unpack_u64_with_null_name() local
494 success = aa_unpack_u64(puf->e, &data, NULL); in policy_unpack_test_unpack_u64_with_null_name()
496 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u64_with_null_name()
506 bool success; in policy_unpack_test_unpack_u64_with_name() local
511 success = aa_unpack_u64(puf->e, &data, name); in policy_unpack_test_unpack_u64_with_name()
513 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_u64_with_name()
523 bool success; in policy_unpack_test_unpack_u64_out_of_bounds() local
529 success = aa_unpack_u64(puf->e, &data, name); in policy_unpack_test_unpack_u64_out_of_bounds()
531 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_u64_out_of_bounds()
539 bool success = aa_unpack_X(puf->e, AA_NAME); in policy_unpack_test_unpack_X_code_match() local
541 KUNIT_EXPECT_TRUE(test, success); in policy_unpack_test_unpack_X_code_match()
548 bool success = aa_unpack_X(puf->e, AA_STRING); in policy_unpack_test_unpack_X_code_mismatch() local
550 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_X_code_mismatch()
557 bool success; in policy_unpack_test_unpack_X_out_of_bounds() local
560 success = aa_unpack_X(puf->e, AA_NAME); in policy_unpack_test_unpack_X_out_of_bounds()
562 KUNIT_EXPECT_FALSE(test, success); in policy_unpack_test_unpack_X_out_of_bounds()