Home
last modified time | relevance | path

Searched refs:expect_success (Results 1 – 6 of 6) sorted by relevance

/linux-6.14.4/tools/testing/selftests/splice/
Dshort_splice_read.sh15 expect_success() function
122 expect_success "proc_handler: proc_dointvec_minmax() splice" test_splice /proc/sys/fs/nr_open
123 expect_success "proc_handler: proc_dostring() splice" test_splice /proc/sys/kernel/modprobe
124 expect_success "proc_handler: special read splice" test_splice /proc/sys/kernel/version
128 expect_success "test_module kernel module load" modprobe test_module
130 expect_success "kernfs attr splice" test_splice /sys/module/test_module/coresize
131 expect_success "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text
/linux-6.14.4/tools/testing/selftests/safesetid/
Dsafesetid-test.c232 static bool test_userns(bool expect_success) in test_userns() argument
259 return success == expect_success; in test_userns()
266 static void test_setuid(uid_t child_uid, bool expect_success) in test_setuid() argument
292 if (expect_success) { in test_setuid()
298 if (expect_success) { in test_setuid()
306 if (expect_success) in test_setuid()
322 static void test_setgid(gid_t child_gid, bool expect_success) in test_setgid() argument
348 if (expect_success) { in test_setgid()
354 if (expect_success) { in test_setgid()
362 if (expect_success) in test_setgid()
[all …]
/linux-6.14.4/net/handshake/
Dhandshake-test.c37 bool expect_success; member
76 .expect_success = false,
82 .expect_success = false,
88 .expect_success = false,
94 .expect_success = false,
100 .expect_success = false,
106 .expect_success = false,
112 .expect_success = true,
138 if (param->expect_success) in handshake_req_alloc_case()
/linux-6.14.4/tools/testing/selftests/bpf/prog_tests/
Dnetfilter_link_attach.c15 bool expect_success; member
34 .expect_success = true,
42 .expect_success = true,
94 if (nf_hook_link_tests[i].expect_success) { in test_netfilter_link_attach()
Dtoken.c795 static int validate_struct_ops_load(int mnt_fd, bool expect_success) in validate_struct_ops_load() argument
810 if (expect_success) { in validate_struct_ops_load()
/linux-6.14.4/tools/testing/selftests/kvm/x86/
Dpmu_counters_test.c338 static void guest_test_rdpmc(uint32_t rdpmc_idx, bool expect_success, in guest_test_rdpmc() argument
345 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc()
346 if (expect_success) in guest_test_rdpmc()
353 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc()
354 if (expect_success) in guest_test_rdpmc()
377 const bool expect_success = i < nr_counters || (or_mask & BIT(i)); in guest_rd_wr_counters() local
383 const uint64_t expected_val = expect_success ? test_val : 0; in guest_rd_wr_counters()
384 const bool expect_gp = !expect_success && msr != MSR_P6_PERFCTR0 && in guest_rd_wr_counters()
408 guest_test_rdpmc(rdpmc_idx, expect_success, expected_val); in guest_rd_wr_counters()
415 GUEST_ASSERT(!expect_success || !pmu_has_fast_mode); in guest_rd_wr_counters()