Home
last modified time | relevance | path

Searched refs:tst_brk (Results 1 - 25 of 669) sorted by relevance

12345678910>>...27

/third_party/ltp/testcases/kernel/containers/netns/
H A Dnetns_helper.sh76 # On success function returns, on error tst_brk is called and TC is terminated.
82 [ $? -eq 32 ] && tst_brk TCONF "setns not supported"
93 tst_brk TBROK \
106 tst_brk TBROK \
112 tst_brk TBROK "fourth argument must be the IPv4 address for veth0"
115 tst_brk TBROK "fifth argument must be the IPv4 address for veth1"
118 tst_brk TBROK "sixth argument must be the IPv6 address for veth0"
121 tst_brk TBROK "seventh argument must be the IPv6 address for veth1"
145 tst_brk TBROK "second argument must be an ip version (ipv4|ipv6)"
165 tst_brk TBRO
[all...]
/third_party/ltp/testcases/kernel/controllers/
H A Dcgroup_lib.sh18 [ "$ctrl" ] || tst_brk TBROK "cgroup_get_mountpoint: controller not defined"
19 [ "$_cgroup_state" ] || tst_brk TBROK "cgroup_get_mountpoint: No previous state found. Forgot to call cgroup_require?"
37 [ "$ctrl" ] || tst_brk TBROK "cgroup_get_test_path: controller not defined"
38 [ "$_cgroup_state" ] || tst_brk TBROK "cgroup_get_test_path: No previous state found. Forgot to call cgroup_require?"
44 [ ! -e "$test_path" ] && tst_brk TBROK "cgroup_get_test_path: No test path found. Forgot to call cgroup_require?"
60 [ "$ctrl" ] || tst_brk TBROK "cgroup_get_version: controller not defined"
61 [ "$_cgroup_state" ] || tst_brk TBROK "cgroup_get_version: No previous state found. Forgot to call cgroup_require?"
64 [ "$version" ] || tst_brk TBROK "cgroup_get_version: Could not find controller $ctrl"
94 [ "$ctrl" ] || tst_brk TBROK "cgroup_get_task_list: controller not defined"
114 [ "$ctrl" ] || tst_brk TBRO
[all...]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
H A Dfallocate04.c76 tst_brk(TFAIL, "not expected file data"); in check_file_data()
86 tst_brk(TCONF, "fallocate() not supported"); in test01()
87 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test01()
109 tst_brk(TCONF, in test02()
112 tst_brk(TFAIL | TERRNO, "fallocate() failed"); in test02()
121 tst_brk(TFAIL | TERRNO, in test02()
124 tst_brk(TBROK | TERRNO, in test02()
135 tst_brk(TFAIL, "not expected allocated size"); in test02()
152 tst_brk(TCONF, in test03()
163 tst_brk(TCON in test03()
[all...]
/third_party/ltp/testcases/lib/
H A Dtst_test.sh24 trap "tst_brk TBROK 'test interrupted'" INT
25 trap "unset _tst_setup_timer_pid; tst_brk TBROK 'test terminated'" TERM
108 *) tst_brk TBROK "Invalid res type '$1'";;
124 tst_brk() function
145 tst_brk TBROK "$@ failed"
153 tst_brk TBROK "$@ failed"
195 _tst_expect_pass tst_brk "$@"
205 _tst_expect_fail tst_brk "$@"
218 tst_brk TBROK "TST_RETRY_FN_EXP_BACKOFF expects 3 parameters"
222 tst_brk TBRO
[all...]
/third_party/ltp/testcases/kernel/syscalls/request_key/
H A Drequest_key04.c29 tst_brk(TBROK | TTERRNO, "failed to join new session keyring"); in do_test()
34 tst_brk(TBROK | TTERRNO, in do_test()
41 tst_brk(TBROK | TTERRNO, in do_test()
48 tst_brk(TBROK | TTERRNO, "failed to read from session keyring"); in do_test()
50 tst_brk(TBROK, "session keyring is not empty"); in do_test()
54 tst_brk(TBROK, "request_key() unexpectedly succeeded"); in do_test()
60 tst_brk(TBROK | TTERRNO, "failed to read from session keyring"); in do_test()
62 tst_brk(TFAIL, "added key to keyring without permission"); in do_test()
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
H A Dima_setup.sh68 tst_brk TCONF "missing $IMA_POLICY (reboot or CONFIG_IMA_WRITE_POLICY=y required)"
71 tst_brk TCONF "cannot read IMA policy (CONFIG_IMA_READ_POLICY=y required)"
79 [ -f $IMA_POLICY ] || tst_brk TCONF "$err"
82 grep -q "Device or resource busy" log && tst_brk TCONF "$err"
101 tst_brk TCONF "IMA policy does not specify '$pattern'"
124 tst_brk TCONF "IMA measurement tests require builtin IMA $policy policy (e.g. ima_policy=$policy kernel parameter)"
137 tst_brk TBROK "failed to create $default_dir"
140 tst_brk TBROK "failed to mount $type"
166 [ -d "$IMA_DIR" ] || tst_brk TCONF "IMA not enabled in kernel"
221 [ -z "$DIGEST_INDEX" ] && tst_brk TCON
[all...]
/third_party/ltp/testcases/kernel/syscalls/sigpending/
H A Dsigpending02.c41 tst_brk(TCONF, "libc sigpending() is not implemented"); in tested_sigpending()
75 tst_brk(TBROK, "sigprocmask failed"); in test_sigpending()
86 tst_brk(TFAIL, in test_sigpending()
91 tst_brk(TBROK, "raising SIGUSR1 failed"); in test_sigpending()
93 tst_brk(TFAIL, in test_sigpending()
101 tst_brk(TFAIL, "only SIGUSR1 should be pending by now"); in test_sigpending()
105 tst_brk(TBROK, "raising SIGUSR2 failed"); in test_sigpending()
107 tst_brk(TFAIL, in test_sigpending()
115 tst_brk(TFAIL, in test_sigpending()
122 tst_brk(TBRO in test_sigpending()
[all...]
/third_party/ltp/lib/
H A Dtst_wallclock.c29 tst_brk(TBROK | TERRNO, "tst_clock_gettime() realtime failed"); in tst_wallclock_save()
33 tst_brk(TCONF | TERRNO, in tst_wallclock_save()
37 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_save()
55 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_restore()
64 tst_brk(TBROK | TERRNO, "tst_clock_settime() realtime failed"); in tst_wallclock_restore()
84 tst_brk(TBROK | TERRNO, "tst_rtc_gettime() realtime failed"); in tst_rtc_clock_save()
87 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_rtc_clock_save()
104 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_rtc_clock_restore()
117 tst_brk(TBROK | TERRNO, "tst_rtc_settime() realtime failed"); in tst_rtc_clock_restore()
H A Dtst_test.c114 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc()
161 tst_brk(TBROK, IPC_ENV_VAR" is not defined"); in tst_reinit()
164 tst_brk(TBROK, "File %s does not exist!", path); in tst_reinit()
228 tst_brk(TBROK, "Invalid ttype value %i", ttype); in print_result()
384 tst_brk(TBROK, "Child (%i) killed by signal %s", pid, in check_child_status()
389 tst_brk(TBROK, "Child (%i) exited abnormally", pid); in check_child_status()
398 tst_brk(TBROK, "Invalid child (%i) exit value %i", pid, ret); in check_child_status()
421 tst_brk(TBROK | TERRNO, "wait() failed"); in tst_reap_children()
431 tst_brk(TBROK, "test.forks_child must be set!"); in safe_fork()
454 tst_brk(TBRO in safe_clone()
[all...]
H A Dtst_af_alg.c22 tst_brk(TCONF, "kernel doesn't support AF_ALG"); in tst_alg_create()
23 tst_brk(TBROK | TERRNO, "unexpected error creating AF_ALG socket"); in tst_alg_create()
36 tst_brk(TCONF, in tst_alg_bind_addr()
42 tst_brk(TCONF, "kernel doesn't support %s algorithm '%s'", in tst_alg_bind_addr()
46 tst_brk(TBROK | TERRNO, in tst_alg_bind_addr()
60 tst_brk(TBROK, "algorithm type too long: '%s'", algtype); in init_sockaddr_alg()
64 tst_brk(TBROK, "algorithm name too long: '%s'", algname); in init_sockaddr_alg()
119 tst_brk(TBROK | TERRNO, in tst_have_alg()
150 tst_brk(TBROK | TERRNO, in tst_alg_setkey()
161 tst_brk(TBRO in tst_alg_accept()
[all...]
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
H A Dfsconfig01.c27 tst_brk(TBROK | TTERRNO, "fsopen() failed"); in run()
31 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_FLAG) failed"); in run()
35 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_STRING) failed"); in run()
42 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_PATH) failed"); in run()
50 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_PATH_EMPTY) failed"); in run()
58 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_SET_FD) failed"); in run()
63 tst_brk(TFAIL | TTERRNO, "fsconfig(FSCONFIG_CMD_CREATE) failed"); in run()
67 tst_brk(TBROK | TTERRNO, "fsmount() failed"); in run()
74 tst_brk(TBROK | TTERRNO, "move_mount() failed"); in run()
/third_party/ltp/testcases/kernel/syscalls/keyctl/
H A Dkeyctl07.c41 tst_brk(TBROK, "request_key() unexpectedly succeeded"); in try_to_read_negative_key()
44 tst_brk(TBROK | TTERRNO, in try_to_read_negative_key()
52 tst_brk(TBROK | TTERRNO, "KEYCTL_READ unexpectedly failed"); in try_to_read_negative_key()
54 tst_brk(TBROK, "KEYCTL_READ returned %ld but expected %zu", in try_to_read_negative_key()
65 tst_brk(TFAIL, in try_to_read_negative_key()
69 tst_brk(TFAIL | TTERRNO, in try_to_read_negative_key()
98 tst_brk(TCONF, "syscall not implemented"); in do_test()
100 tst_brk(TBROK, "Child %s", tst_strstatus(status)); in do_test()
/third_party/ltp/libs/libltpswap/
H A Dlibswap.c21 tst_brk(TBROK, "Insufficient disk space to create swap file"); in make_swapfile()
25 tst_brk(TBROK, "Failed to create swapfile"); in make_swapfile()
49 tst_brk(TCONF, "mkswap on %s not supported", fstype); in is_swap_supported()
51 tst_brk(TFAIL, "mkswap on %s failed", fstype); in is_swap_supported()
57 tst_brk(TCONF, "Swapfile on %s not implemented", fstype); in is_swap_supported()
59 tst_brk(TFAIL | TTERRNO, "swapon on %s failed", fstype); in is_swap_supported()
64 tst_brk(TFAIL | TTERRNO, "swapoff on %s failed", fstype); in is_swap_supported()
/third_party/ltp/testcases/kernel/controllers/cpuset/
H A Dcpuset_regression_test.sh134 tst_brk TCONF "cgroup v2 found, skipping test"
144 tst_brk TBROK "Both cpuset.cpu_exclusive and cpu_exclusive do not exist"
151 tst_brk TCONF "There are already cpuset groups, so at least two cpus are required."
157 [ $? -ne 0 ] && tst_brk TBROK "Unable to prepare existing cpuset cgroups"
163 [ $? -ne 0 ] && tst_brk TBROK "'echo 1 > ${root_cpuset_dir}/${cpu_exclusive}' failed"
194 [ $? -ne 0 ] && tst_brk TFAIL "'echo 1 > ${root_cpuset_dir}/testdir/${cpu_exclusive}' failed"
198 tst_brk TFAIL "${cpu_exclusive} is '${cpu_exclusive_tmp}', expected '1'"
203 [ $? -ne 0 ] && tst_brk TFAIL "'echo 0 > ${root_cpuset_dir}/testdir/${cpus}' failed"
207 tst_brk TFAIL "${cpus} is '${cpus_value}', expected '0'"
/third_party/ltp/testcases/kernel/syscalls/move_pages/
H A Dmove_pages12.c172 tst_brk(TBROK | TERRNO, "Cannot allocate hugepage"); in do_test()
181 tst_brk(TBROK, "Failed to mmap at desired addr"); in do_test()
223 tst_brk(TCONF, "Cannot allocate huge pages"); in alloc_free_huge_on_node()
225 tst_brk(TBROK | TERRNO, "mmap(..., MAP_HUGETLB, ...) failed"); in alloc_free_huge_on_node()
230 tst_brk(TBROK | TERRNO, "numa_bitmask_alloc() failed"); in alloc_free_huge_on_node()
237 tst_brk(TCONF, "Cannot mbind huge pages"); in alloc_free_huge_on_node()
239 tst_brk(TBROK | TERRNO, "mbind() failed"); in alloc_free_huge_on_node()
246 tst_brk(TCONF, "Cannot lock huge pages"); in alloc_free_huge_on_node()
247 tst_brk(TBROK | TTERRNO, "mlock failed"); in alloc_free_huge_on_node()
263 tst_brk(TCON in setup()
[all...]
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress01.c89 tst_brk(TBROK, "invalid initial filesize '%s'", opt_filesize); in setup()
92 tst_brk(TBROK, "invalid sparse offset '%s'", opt_sparseoffset); in setup()
94 tst_brk(TBROK, "sparseoffset must be pagesize multiple"); in setup()
97 tst_brk(TBROK, "invalid number of mapping children '%s'", in setup()
103 tst_brk(TBROK, "invalid pattern '%s'", opt_pattern); in setup()
147 tst_brk(TBROK, "size_t overflow when setting up map"); in child_mapper()
182 tst_brk(TFAIL, "child %d: invalid data <x%x>\n" in child_mapper()
195 tst_brk(TBROK | TERRNO, "msync failed"); in child_mapper()
217 tst_brk(TBROK, "size_t overflow when setting up map"); in fileokay()
227 tst_brk(TFAI in fileokay()
[all...]
/third_party/ltp/testcases/kernel/syscalls/execle/
H A Dexecle01_child.c18 tst_brk(TFAIL, "argc is %d, expected 2", argc); in main()
21 tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); in main()
26 tst_brk(TFAIL, "LTP_TEST_ENV_VAR is missing"); in main()
29 tst_brk(TFAIL, "LTP_TEST_ENV_VAR='%s', expected test", env); in main()
32 tst_brk(TFAIL, "PATH is in environment"); in main()
/third_party/ltp/testcases/kernel/syscalls/execve/
H A Dexecve01_child.c18 tst_brk(TFAIL, "argc is %d, expected 2", argc); in main()
21 tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); in main()
26 tst_brk(TFAIL, "LTP_TEST_ENV_VAR is missing"); in main()
29 tst_brk(TFAIL, "LTP_TEST_ENV_VAR='%s', expected test", env); in main()
32 tst_brk(TFAIL, "PATH is in environment"); in main()
/third_party/ltp/testcases/kernel/syscalls/nice/
H A Dnice05.c39 tst_brk(TBROK | TTERRNO, "nice(%d) returned %li, expected %i", in set_nice()
44 tst_brk(TBROK | TTERRNO, "nice(%d) failed", nice_inc); in set_nice()
56 tst_brk(TBROK | TRERRNO, in do_something()
82 tst_brk(TBROK | TERRNO, "CPU_ALLOC()"); in setup()
87 tst_brk(TBROK | TERRNO, "sched_getaffinity()"); in setup()
96 tst_brk(TBROK | TERRNO, "sched_setaffinity()"); in setup()
123 tst_brk(TBROK | TRERRNO, "clock_getcpuclockid() failed"); in verify_nice()
127 tst_brk(TBROK | TRERRNO, "clock_getcpuclockid() failed"); in verify_nice()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
H A Ddio_read.c49 tst_brk(TBROK, "pwrite: %s", tst_strerrno(-w)); in do_buffered_writes()
51 tst_brk(TBROK, "pwrite: wrote %lld bytes out of %lld", w, wsize); in do_buffered_writes()
88 tst_brk(TBROK, "pread: %s", tst_strerrno(-w)); in do_direct_reads()
90 tst_brk(TBROK, "pread: read %lld bytes out of %lld", w, rsize); in do_direct_reads()
115 tst_brk(TBROK, "Invalid number of children '%s'", str_numchildren); in setup()
118 tst_brk(TBROK, "Invalid file size '%s'", str_filesize); in setup()
121 tst_brk(TBROK, "Invalid write blocks size '%s'", str_writesize); in setup()
124 tst_brk(TBROK, "Invalid read blocks size '%s'", str_readsize); in setup()
H A Daiodio_sparse.c50 tst_brk(TBROK, "AIO write offset %lld expected %ld got %ld", in check_event()
91 tst_brk(TBROK, "io_submit: %s", tst_strerrno(-w)); in aiodio_sparse()
105 tst_brk(TBROK, "io_getevents: %s", tst_strerrno(-n)); in aiodio_sparse()
118 tst_brk(TBROK, "io_submit: %s", tst_strerrno(-w)); in aiodio_sparse()
132 tst_brk(TBROK, "io_getevents failed"); in aiodio_sparse()
148 tst_brk(TBROK, "Invalid number of children '%s'", in setup()
153 tst_brk(TBROK, "Invalid write blocks size '%s'", str_writesize); in setup()
156 tst_brk(TBROK, "Invalid file size '%s'", str_filesize); in setup()
159 tst_brk(TBROK, "Invalid number of AIO control blocks '%s'", in setup()
H A Daiocp.c104 tst_brk(TBROK, "Write missing bytes expect %d got %ld", iosize, res); in async_write_done()
107 tst_brk(TBROK, "Write error: %s", tst_strerrno(-res2)); in async_write_done()
118 tst_brk(TCONF, "Out of runtime!"); in async_write_done()
129 tst_brk(TBROK, "Read missing bytes expect %d got %ld", iosize, res); in async_copy()
132 tst_brk(TBROK, "Read error: %s", tst_strerrno(-res2)); in async_copy()
139 tst_brk(TBROK, "io_submit error: %s", tst_strerrno(-w)); in async_copy()
150 tst_brk(TBROK, "io_getevents() failed: %s", tst_strerrno(-n)); in io_wait_run()
193 tst_brk(TBROK, "io_submit write error: %s", tst_strerrno(-rc)); in async_run()
208 tst_brk(TBROK, "Invalid number of I/O '%s'", str_aionum); in setup()
217 tst_brk(TBRO in setup()
[all...]
/third_party/ltp/testcases/kernel/syscalls/openat/
H A Dopenat04.c54 tst_brk(TCONF, "Kernel does not support noacl feature"); in do_mount()
57 tst_brk(TBROK | TTERRNO, "mount(%s, %s, %s, %lu, %p) failed", in do_mount()
62 tst_brk(TBROK, "Invalid mount return value %ld", TST_RET); in do_mount()
73 tst_brk(TCONF, "fs doesn't support O_TMPFILE"); in open_tmpfile_supported()
75 tst_brk(TBROK | TTERRNO, "openat(%d, O_TMPFILE) failed", dirfd); in open_tmpfile_supported()
79 tst_brk(TBROK, "Invalid openat return value %ld", TST_RET); in open_tmpfile_supported()
106 tst_brk(TBROK, "%s: Setgid bit not set", WORKDIR); in setup()
109 tst_brk(TBROK, "%s: Incorrect group, %u != %u", WORKDIR, in setup()
/third_party/ltp/testcases/kernel/syscalls/swapon/
H A Dswapon03.c46 tst_brk(TBROK, "Setup failed, quitting the test"); in verify_swapon()
95 tst_brk(TBROK, "Cleanup failed, quitting the test"); in verify_swapon()
114 tst_brk(TFAIL | TERRNO, "Failed to call seteuid"); in setup_swap()
118 tst_brk(TFAIL | TERRNO, in setup_swap()
125 tst_brk(TFAIL | TERRNO, in setup_swap()
139 tst_brk(TFAIL, "Failed to find existing number of swapfiles"); in setup_swap()
177 tst_brk(TFAIL, "Failed to setup swaps"); in setup_swap()
257 tst_brk(TCONF, "swap not supported by kernel"); in setup()
/third_party/ltp/testcases/network/dhcp/
H A Ddhcp_lib.sh39 [ $TST_IPV6 ] && tst_brk TCONF "wicked not supported on IPv6"
59 tst_brk TBROK "failed to add veth $iface0"
62 ip link set up $iface0 || tst_brk TBROK "failed to bring $iface0 up"
63 ip link set up $iface1 || tst_brk TBROK "failed to bring $iface1 up"
65 stop_dhcp || tst_brk TBROK "Failed to stop dhcp server"
76 tst_brk TBROK "failed to add ip address"
125 tst_brk TBROK "Failed to start $dhcp_name"
132 tst_brk TBROK "Failed to start $dhcp_name"
153 dhclient -$TST_IPVER $iface1 || tst_brk TBROK "dhclient failed"

Completed in 9 milliseconds

12345678910>>...27