Lines Matching refs:test
42 #define test(condition, msg) \ macro
84 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
87 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
89 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init()
95 ret |= test(put_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
98 ret |= test(get_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
100 ret |= test(val_##size != check, \ in test_user_copy_init()
126 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
131 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
141 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, in test_user_copy_init()
145 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init()
148 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, in test_user_copy_init()
155 ret |= test(!get_user(val_##size, (size __user *)kmem), \ in test_user_copy_init()
157 ret |= test(val_##size != (size)0, \ in test_user_copy_init()
163 ret |= test(!put_user(val_##size, (size __user *)kmem), \ in test_user_copy_init()