Lines Matching refs:test
454 #define NMA_TRUE(...) KUNIT_EXPECT_TRUE(test, no_more_access(__VA_ARGS__))
455 #define NMA_FALSE(...) KUNIT_EXPECT_FALSE(test, no_more_access(__VA_ARGS__))
459 static void test_no_more_access(struct kunit *const test) in test_no_more_access() argument
596 static void test_scope_to_request_with_exec_none(struct kunit *const test) in test_scope_to_request_with_exec_none() argument
602 KUNIT_EXPECT_TRUE(test, scope_to_request(LANDLOCK_ACCESS_FS_EXECUTE, in test_scope_to_request_with_exec_none()
604 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_none()
606 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_none()
610 static void test_scope_to_request_with_exec_some(struct kunit *const test) in test_scope_to_request_with_exec_some() argument
619 KUNIT_EXPECT_FALSE(test, scope_to_request(LANDLOCK_ACCESS_FS_EXECUTE, in test_scope_to_request_with_exec_some()
621 KUNIT_EXPECT_EQ(test, BIT_ULL(0), in test_scope_to_request_with_exec_some()
623 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_with_exec_some()
627 static void test_scope_to_request_without_access(struct kunit *const test) in test_scope_to_request_without_access() argument
636 KUNIT_EXPECT_TRUE(test, scope_to_request(0, &layer_masks)); in test_scope_to_request_without_access()
637 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_without_access()
639 KUNIT_EXPECT_EQ(test, 0, in test_scope_to_request_without_access()
668 #define IE_TRUE(...) KUNIT_EXPECT_TRUE(test, is_eacces(__VA_ARGS__))
669 #define IE_FALSE(...) KUNIT_EXPECT_FALSE(test, is_eacces(__VA_ARGS__))
673 static void test_is_eacces_with_none(struct kunit *const test) in test_is_eacces_with_none() argument
683 static void test_is_eacces_with_refer(struct kunit *const test) in test_is_eacces_with_refer() argument
695 static void test_is_eacces_with_write(struct kunit *const test) in test_is_eacces_with_write() argument