Home
last modified time | relevance | path

Searched refs:ASSERT_ERR (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dsnprintf.c110 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 …]
Dlookup_and_delete.c126 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()
Dbtf_write.c46 ASSERT_ERR(id, "int_bad_sz"); in test_btf_write()
49 ASSERT_ERR(id, "int_bad_enc"); in test_btf_write()
52 ASSERT_ERR(id, "int_bad_null_name"); in test_btf_write()
55 ASSERT_ERR(id, "int_bad_empty_name"); in test_btf_write()
103 ASSERT_ERR(err, "no_struct_field"); in test_btf_write()
138 ASSERT_ERR(err, "no_struct_field"); in test_btf_write()
Dringbuf.c110 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()
Dmodule_attach.c100 ASSERT_ERR(delete_module("bpf_testmod", 0), "delete_module"); in test_module_attach()
107 ASSERT_ERR(delete_module("bpf_testmod", 0), "delete_module"); in test_module_attach()
Dxdp_context_test_run.c25 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()
Dsk_storage_tracing.c85 if (!ASSERT_ERR(err, "map_lookup(del_sk_stg_map)")) in do_test()
Dfor_each.c57 ASSERT_ERR(err, "hashmap_lookup"); in test_hash_map()
Dcore_autosize.c212 if (!ASSERT_ERR(err, "skel_load")) in test_core_autosize()
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_progs.h245 #define ASSERT_ERR(res, name) ({ \ macro