Searched refs:ASSERT_ERR (Results 1 – 12 of 12) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | snprintf.c | 110 ASSERT_ERR(load_single_snprintf("0123456789"), "no terminating zero"); in test_snprintf_negative() 111 ASSERT_ERR(load_single_snprintf("%d %d"), "too many specifiers"); in test_snprintf_negative() 112 ASSERT_ERR(load_single_snprintf("%pi5"), "invalid specifier 1"); in test_snprintf_negative() 113 ASSERT_ERR(load_single_snprintf("%a"), "invalid specifier 2"); in test_snprintf_negative() 114 ASSERT_ERR(load_single_snprintf("%"), "invalid specifier 3"); in test_snprintf_negative() 115 ASSERT_ERR(load_single_snprintf("%12345678"), "invalid specifier 4"); in test_snprintf_negative() 116 ASSERT_ERR(load_single_snprintf("%--------"), "invalid specifier 5"); in test_snprintf_negative() 117 ASSERT_ERR(load_single_snprintf("%lc"), "invalid specifier 6"); in test_snprintf_negative() 118 ASSERT_ERR(load_single_snprintf("%llc"), "invalid specifier 7"); in test_snprintf_negative() 119 ASSERT_ERR(load_single_snprintf("\x80"), "non ascii character"); in test_snprintf_negative() [all …]
|
A D | lookup_and_delete.c | 126 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_hash() 165 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_percpu_hash() 205 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_hash() 210 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_hash() 264 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_percpu_hash() 269 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_percpu_hash()
|
A D | ringbuf.c | 110 ASSERT_ERR(mprotect(mmap_ptr, page_size, PROT_EXEC), "exec_cons_pos_protect"); in test_ringbuf() 134 ASSERT_ERR(mprotect(mmap_ptr, 4 * page_size, PROT_WRITE), "write_protect"); in test_ringbuf() 135 ASSERT_ERR(mprotect(mmap_ptr, 4 * page_size, PROT_EXEC), "exec_protect"); in test_ringbuf() 144 ASSERT_ERR(mprotect(mmap_ptr, page_size, PROT_WRITE), "write_protect"); in test_ringbuf() 145 ASSERT_ERR(mprotect(mmap_ptr, page_size, PROT_EXEC), "exec_protect"); in test_ringbuf()
|
A D | btf_write.c | 42 ASSERT_ERR(id, "int_bad_sz"); in gen_btf() 45 ASSERT_ERR(id, "int_bad_enc"); in gen_btf() 48 ASSERT_ERR(id, "int_bad_null_name"); in gen_btf() 51 ASSERT_ERR(id, "int_bad_empty_name"); in gen_btf() 99 ASSERT_ERR(err, "no_struct_field"); in gen_btf() 134 ASSERT_ERR(err, "no_struct_field"); in gen_btf()
|
A D | module_attach.c | 96 ASSERT_ERR(delete_module("bpf_testmod", 0), "delete_module"); in test_module_attach() 103 ASSERT_ERR(delete_module("bpf_testmod", 0), "delete_module"); in test_module_attach()
|
A D | xdp_context_test_run.c | 25 ASSERT_ERR(err, "bpf_prog_test_run"); in test_xdp_context_error() 54 ASSERT_ERR(err, "bpf_prog_test_run(extradata)"); in test_xdp_context_test_run()
|
A D | bpf_verif_scale.c | 56 ASSERT_ERR(err, "expect_error"); in scale_test()
|
A D | sk_storage_tracing.c | 85 if (!ASSERT_ERR(err, "map_lookup(del_sk_stg_map)")) in do_test()
|
A D | for_each.c | 57 ASSERT_ERR(err, "hashmap_lookup"); in test_hash_map()
|
A D | test_bpffs.c | 125 if (!ASSERT_ERR(err, "renameat2(RENAME_NOREPLACE)")) { in fn()
|
A D | core_autosize.c | 212 if (!ASSERT_ERR(err, "skel_load")) in test_core_autosize()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_progs.h | 279 #define ASSERT_ERR(res, name) ({ \ macro
|
Completed in 13 milliseconds