Lines Matching refs:test
28 #define test(condition, msg) \ macro
62 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
64 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
66 ret |= test(get_user(value, (unsigned long __user *)usermem), in test_user_copy_init()
68 ret |= test(put_user(value, (unsigned long __user *)usermem), in test_user_copy_init()
72 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
75 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, in test_user_copy_init()
78 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init()
81 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, in test_user_copy_init()
84 ret |= test(!get_user(value, (unsigned long __user *)kmem), in test_user_copy_init()
86 ret |= test(!put_user(value, (unsigned long __user *)kmem), in test_user_copy_init()