Home
last modified time | relevance | path

Searched refs:ASSERT_FALSE (Results 1 – 25 of 61) sorted by relevance

123

/linux/tools/testing/selftests/filesystems/open_tree_ns/
H A Dopen_tree_ns_test.c402 ASSERT_FALSE(true) TH_LOG("OPEN_TREE_NAMESPACE succeeded without caps"); in TEST_F()
414 ASSERT_FALSE(true) TH_LOG("Unexpected error in child (exit %d)", in TEST_F()
500 ASSERT_FALSE(true) TH_LOG("open_tree(OPEN_TREE_NAMESPACE) failed in userns"); in TEST_F()
509 ASSERT_FALSE(true) TH_LOG("Failed to get mount namespace ID"); in TEST_F()
512 ASSERT_FALSE(true) TH_LOG("listmount failed in new namespace"); in TEST_F()
515 ASSERT_FALSE(true) TH_LOG("New namespace has no mounts"); in TEST_F()
518 ASSERT_FALSE(true) TH_LOG("Unexpected error in child (exit %d)", in TEST_F()
583 ASSERT_FALSE(true) TH_LOG("open_tree or setns failed in userns"); in TEST_F()
592 ASSERT_FALSE(true) TH_LOG("Failed to get mount namespace ID"); in TEST_F()
595 ASSERT_FALSE(true) TH_LOG("Inner fork failed"); in TEST_F()
[all …]
/linux/tools/testing/selftests/mm/
H A Dguard-regions.c363 ASSERT_FALSE(try_read_write_buf(ptr)); in TEST_F()
377 ASSERT_FALSE(try_read_write_buf(ptr)); in TEST_F()
378 ASSERT_FALSE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F()
381 ASSERT_FALSE(madvise(ptr, page_size, MADV_GUARD_REMOVE)); in TEST_F()
387 ASSERT_FALSE(madvise(&ptr[(NUM_PAGES - 1) * page_size], page_size, in TEST_F()
404 ASSERT_FALSE(try_read_write_buf(curr)); in TEST_F()
494 ASSERT_FALSE(try_read_write_buf(curr)); in TEST_F()
500 ASSERT_FALSE(try_read_write_buf(curr)); in TEST_F()
506 ASSERT_FALSE(try_read_write_buf(curr)); in TEST_F()
555 ASSERT_FALSE(try_read_write_bu in TEST_F()
[all...]
/linux/tools/testing/vma/tests/
H A Dvma.c242 ASSERT_FALSE(vma_flags_test(&flags, _flag)); \ in test_vma_flags_test()
243 ASSERT_FALSE(vma_flags_test_single_mask(&flags, mk_vma_flags(_flag))); \ in test_vma_flags_test()
244 ASSERT_FALSE(vma_test(&vma, _flag)); \ in test_vma_flags_test()
245 ASSERT_FALSE(vma_test_single_mask(&vma, mk_vma_flags(_flag))); \ in test_vma_flags_test()
246 ASSERT_FALSE(vma_desc_test(&desc, _flag)) in test_vma_flags_test()
264 ASSERT_FALSE(vma_flags_test_single_mask(&flags, EMPTY_VMA_FLAGS)); in test_vma_flags_test()
265 ASSERT_FALSE(vma_test_single_mask(&vma, EMPTY_VMA_FLAGS)); in test_vma_flags_test()
269 ASSERT_FALSE(vma_flags_test_single_mask(&flags, EMPTY_VMA_FLAGS)); in test_vma_flags_test()
270 ASSERT_FALSE(vma_test_single_mask(&vma, EMPTY_VMA_FLAGS)); in test_vma_flags_test()
301 ASSERT_FALSE(vma_flags_test_all(&flags, __VA_ARGS__)); \ in test_vma_flags_test_any()
[all …]
H A Dmerge.c115 ASSERT_FALSE(attach_vma(&mm, vma_left)); in test_simple_merge()
116 ASSERT_FALSE(attach_vma(&mm, vma_right)); in test_simple_merge()
142 ASSERT_FALSE(attach_vma(&mm, init_vma)); in test_simple_modify()
213 ASSERT_FALSE(attach_vma(&mm, vma)); in test_simple_expand()
215 ASSERT_FALSE(expand_existing(&vmg)); in test_simple_expand()
236 ASSERT_FALSE(attach_vma(&mm, vma)); in test_simple_shrink()
238 ASSERT_FALSE(vma_shrink(&vmi, vma, 0x1000)); in test_simple_shrink()
319 ASSERT_FALSE(merged); in __test_merge_new()
1149 ASSERT_FALSE(vma_write_started(vma_next)); in test_anon_vma_non_mergeable()
1181 ASSERT_FALSE(vma_write_starte in test_anon_vma_non_mergeable()
[all...]
H A Dmmap.c40 ASSERT_FALSE(true); in test_mmap_region_basic()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dstruct_ops_autocreate.c73 ASSERT_FALSE(bpf_program__autoload(skel->progs.test_2), "test_2 actual autoload"); in can_load_partial_object()
92 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map), "optional_map autocreate"); in optional_maps()
93 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map2), "optional_map2 autocreate"); in optional_maps()
124 ASSERT_FALSE(bpf_program__autoload(skel->progs.foo), "foo default autoload"); in autoload_and_shadow_vars()
125 ASSERT_FALSE(bpf_program__autoload(skel->progs.bar), "bar default autoload"); in autoload_and_shadow_vars()
135 ASSERT_FALSE(bpf_program__autoload(skel->progs.bar), "bar actual autoload"); in autoload_and_shadow_vars()
H A Dcustom_sec_handlers.c27 ASSERT_FALSE(true, "unexpected preload for abc"); in custom_prepare_load_prog()
48 ASSERT_FALSE(true, "unexpected cookie"); in custom_attach_prog()
134 ASSERT_FALSE(bpf_program__autoload(skel->progs.abc1), "abc1_autoload"); in test_custom_sec_handlers()
162 ASSERT_FALSE(skel->bss->abc1_called, "abc1_called"); in test_custom_sec_handlers()
167 ASSERT_FALSE(skel->bss->kprobe1_called, "kprobe1_called"); in test_custom_sec_handlers()
169 ASSERT_FALSE(skel->bss->xyz_called, "xyz_called"); in test_custom_sec_handlers()
H A Dcgroup_getset_retval.c46 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_set()
86 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_set_and_get()
123 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_default_zero()
166 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_default_zero_and_set()
215 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_override()
261 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_legacy_eperm()
312 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_legacy_no_override()
354 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_getsockopt_get()
396 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_getsockopt_override()
442 if (!ASSERT_FALSE(ob in test_getsockopt_retval_sync()
[all...]
H A Dautoattach.c18 ASSERT_FALSE(bpf_program__autoattach(skel->progs.prog2), "autoattach_prog2"); in test_autoattach()
25 ASSERT_FALSE(skel->bss->prog2_called, "attached_prog2"); in test_autoattach()
H A Dtest_mmap_inner_array.c35 ASSERT_FALSE(skel->bss->outer_map_match, "outer map match 1"); in test_mmap_inner_array()
36 ASSERT_FALSE(skel->bss->done, "done 1"); in test_mmap_inner_array()
H A Dtailcalls.c353 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
358 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
370 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
375 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
1048 if (!ASSERT_FALSE(map_fd < 0, "find jmp_table map fd")) in test_tailcall_bpf2bpf_fentry_entry()
1056 if (!ASSERT_FALSE(prog_fd < 0, "find classifier_0 prog fd")) in test_tailcall_bpf2bpf_fentry_entry()
1090 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_bpf2bpf_fentry_entry()
1095 if (!ASSERT_FALSE(data_fd < 0, "find tailcall.bss map fd")) in test_tailcall_bpf2bpf_fentry_entry()
1104 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_bpf2bpf_fentry_entry()
1109 if (!ASSERT_FALSE(data_f in test_tailcall_bpf2bpf_fentry_entry()
[all...]
H A Dcore_kern.c23 ASSERT_FALSE(skel->bss->proto_out[1], "!bpf_core_type_exists"); in test_core_kern_lskel()
H A Dlog_buf.c79 ASSERT_FALSE(libbpf_log_error, "libbpf_log_error"); in obj_load_log_buf()
122 ASSERT_FALSE(libbpf_log_error, "libbpf_log_error"); in obj_load_log_buf()
H A Ddecap_sanity.c67 ASSERT_FALSE(skel->bss->broken_csum_start, "broken_csum_start"); in test_decap_sanity()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_info_test.c143 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F()
158 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F()
177 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F()
192 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F()
215 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F()
321 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F()
332 ASSERT_FALSE(!!(info2.mask & PIDFD_INFO_EXIT)); in TEST_F()
339 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F()
364 ASSERT_FALSE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F()
376 ASSERT_FALSE(!!(info in TEST_F()
[all...]
/linux/tools/testing/selftests/coredump/
H A Dcoredump_socket_test.c358 ASSERT_FALSE(WCOREDUMP(status)); in TEST_F()
428 ASSERT_FALSE(WCOREDUMP(status)); in TEST_F()
934 ASSERT_FALSE(set_core_pattern("@ /tmp/coredump.socket")); in TEST_F()
935 ASSERT_FALSE(set_core_pattern("@/tmp/../coredump.socket")); in TEST_F()
936 ASSERT_FALSE(set_core_pattern("@../coredump.socket")); in TEST_F()
937 ASSERT_FALSE(set_core_pattern("@/tmp/coredump.socket/..")); in TEST_F()
938 ASSERT_FALSE(set_core_pattern("@..")); in TEST_F()
940 ASSERT_FALSE(set_core_pattern("@@ /tmp/coredump.socket")); in TEST_F()
941 ASSERT_FALSE(set_core_pattern("@@/tmp/../coredump.socket")); in TEST_F()
942 ASSERT_FALSE(set_core_pattern("@@../coredump.socket")); in TEST_F()
[all …]
/linux/tools/testing/selftests/namespaces/
H A Dcred_change_test.c161 ASSERT_FALSE(found); in TEST()
276 ASSERT_FALSE(found); in TEST()
395 ASSERT_FALSE(found); in TEST()
564 ASSERT_FALSE(found_parent); in TEST()
565 ASSERT_FALSE(found_child); in TEST()
699 ASSERT_FALSE(found); in TEST()
810 ASSERT_FALSE(found); in TEST()
/linux/tools/testing/selftests/proc/
H A Dproc-maps-race.c923 ASSERT_FALSE(print_boundaries_on( in TEST_F()
929 ASSERT_FALSE(print_boundaries_on( in TEST_F()
932 ASSERT_FALSE(print_boundaries_on( in TEST_F()
1022 ASSERT_FALSE(print_boundaries_on(
1028 ASSERT_FALSE(print_boundaries_on(
1031 ASSERT_FALSE(print_boundaries_on(
1111 ASSERT_FALSE(print_boundaries_on(
1117 ASSERT_FALSE(print_boundaries_on(
1120 ASSERT_FALSE(print_boundaries_on(
/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_test.c68 ASSERT_FALSE(command & PCI_COMMAND_MASTER); in TEST_F()
77 ASSERT_FALSE(command & PCI_COMMAND_MASTER); in TEST_F()
/linux/tools/testing/selftests/riscv/vector/
H A Dvalidate_v_ptrace.c173 ASSERT_FALSE((errno != 0) && (vstart_csr == -1)); in TEST()
177 ASSERT_FALSE((errno != 0) && (vl_csr == -1)); in TEST()
181 ASSERT_FALSE((errno != 0) && (vtype_csr == -1)); in TEST()
185 ASSERT_FALSE((errno != 0) && (vcsr_csr == -1)); in TEST()
189 ASSERT_FALSE((errno != 0) && (vlenb_csr == -1)); in TEST()
/linux/tools/testing/selftests/user_events/
H A Duser_events_selftests.h103 ASSERT_FALSE(fail); \
/linux/tools/testing/selftests/arm64/gcs/
H A Dlibc-gcs.c279 ASSERT_FALSE(true); in TEST()
418 ASSERT_FALSE(self->stack == MAP_FAILED); in FIXTURE_VARIANT_ADD()
639 ASSERT_FALSE(self->stack == MAP_FAILED); in TEST_F()
/linux/tools/testing/selftests/ring-buffer/
H A Dmap_test.c150 ASSERT_FALSE(fail); in FIXTURE_SETUP()
282 ASSERT_FALSE(fail); in FIXTURE_SETUP()
/linux/tools/testing/vma/
H A Dshared.h39 #define ASSERT_FALSE(_expr) ASSERT_TRUE(!(_expr))
61 ASSERT_FALSE(vma_flags_same_pair((_flags), &__flags_other)); \
74 ASSERT_FALSE(vma_flags_empty(_flags)) in dummy_close()
34 #define ASSERT_FALSE( global() macro
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c426 ASSERT_FALSE(mount_has_field(SET_GROUP_C, "master:")); in TEST_F()
433 ASSERT_FALSE(mount_has_field(SET_GROUP_C, "shared:")); in TEST_F()

123