Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
A 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 …]
A 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()
A 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()
A Dbtf_write.c42 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 Dmodule_attach.c96 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 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()
A Dbpf_verif_scale.c56 ASSERT_ERR(err, "expect_error"); in scale_test()
A Dsk_storage_tracing.c85 if (!ASSERT_ERR(err, "map_lookup(del_sk_stg_map)")) in do_test()
A Dfor_each.c57 ASSERT_ERR(err, "hashmap_lookup"); in test_hash_map()
A Dtest_bpffs.c125 if (!ASSERT_ERR(err, "renameat2(RENAME_NOREPLACE)")) { in fn()
A Dcore_autosize.c212 if (!ASSERT_ERR(err, "skel_load")) in test_core_autosize()
/linux/tools/testing/selftests/bpf/
A Dtest_progs.h279 #define ASSERT_ERR(res, name) ({ \ macro

Completed in 13 milliseconds