Home
last modified time | relevance | path

Searched refs:TH_LOG (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c175 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
196 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
267 TH_LOG("lo %5hu, hi %5hu, expected %5hu", in TEST_F()
278 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
305 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
320 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
331 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
356 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
366 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
398 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
[all …]
H A Dreuseaddr_ports_exhausted.c61 ASSERT_NE(-1, fd) TH_LOG("failed to open socket."); in bind_port()
64 ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEADDR."); in bind_port()
67 ASSERT_EQ(0, ret) TH_LOG("failed to setsockopt: SO_REUSEPORT."); in bind_port()
92 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
93 EXPECT_EQ(-1, fd[1]) TH_LOG("should fail to bind."); in TEST()
112 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
117 EXPECT_NE(-1, fd[1]) TH_LOG("should succeed to bind to connect to different destinations."); in TEST()
137 ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: %d.", euid[j]); in TEST()
142 ASSERT_EQ(0, ret) TH_LOG("failed to seteuid: 0."); in TEST()
145 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
[all …]
H A Dso_incoming_cpu.c231 TH_LOG("SO_INCOMING_CPU is very likely to be " in verify_incoming_cpu()
/openbmc/linux/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c45 TH_LOG("%s - Failed to unshare mount namespace", in change_mountns()
51 TH_LOG("%s - Failed to mount / as private", in change_mountns()
309 TH_LOG("write_nointr() failed"); in change_userns()
314 TH_LOG("read_nointr() failed"); in change_userns()
320 TH_LOG("setid_userns_root() failed"); in change_userns()
334 TH_LOG("read_nointr() failed"); in change_idmaps()
340 TH_LOG("write_id_mapping(UID_MAP) failed"); in change_idmaps()
346 TH_LOG("write_id_mapping(GID_MAP) failed"); in change_idmaps()
351 TH_LOG("write_nointr() failed"); in change_idmaps()
490 TH_LOG("wait_for_pid() failed"); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/mincore/
H A Dmincore_selftest.c53 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
97 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
102 TH_LOG("Page found in memory before use"); in TEST()
161 TH_LOG("Page found in memory before use"); in TEST()
205 TH_LOG("Can't allocate array"); in TEST()
212 TH_LOG("Can't create temporary file: %s", in TEST()
234 TH_LOG("mmap error: %s", strerror(errno)); in TEST()
240 TH_LOG("Unexpected page in memory"); in TEST()
310 TH_LOG("Can't allocate array"); in TEST()
316 TH_LOG("Can't create temporary file: %s", in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/syscall_user_dispatch/
H A Dsud_test.c78 TH_LOG("Unreachable!"); in TEST_SIGNAL()
130 TH_LOG("Should reject bad syscall range"); in TEST()
138 TH_LOG("Should reject bad syscall range"); in TEST()
210 TH_LOG("Dispatch triggered unexpectedly"); in TEST()
219 TH_LOG("Failed to intercept syscall"); in TEST()
222 TH_LOG("Failed to emulate syscall"); in TEST()
225 TH_LOG("Bad si_code in SIGSYS"); in TEST()
228 TH_LOG("Bad si_errno in SIGSYS"); in TEST()
271 TH_LOG("Unreachable!"); in TEST_SIGNAL()
299 TH_LOG("Dispatch triggered unexpectedly"); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c55 TH_LOG("%s - Failed to create new process", strerror(errno)); in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid()
73 TH_LOG("Child returned %s", strerror(errno)); in call_clone3_set_tid()
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
155 TH_LOG("Child has PID %d", getpid()); in TEST()
159 TH_LOG("Waiting for child %d failed", pid); in TEST()
165 TH_LOG("Could not set CAP_CHECKPOINT_RESTORE"); in TEST()
170 TH_LOG("Failed to setgid(65534)"); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c210 ASSERT_TRUE(0) TH_LOG("SIGSEGV/SIGILL signal did not occur"); in TEST()
234 ASSERT_NE(0, keyia) TH_LOG("keyia instructions did nothing"); in TEST()
235 ASSERT_NE(0, keyib) TH_LOG("keyib instructions did nothing"); in TEST()
236 ASSERT_NE(0, keyda) TH_LOG("keyda instructions did nothing"); in TEST()
237 ASSERT_NE(0, keydb) TH_LOG("keydb instructions did nothing"); in TEST()
249 ASSERT_NE(0, keyg) TH_LOG("keyg instructions did nothing"); in TEST()
287 ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same); in TEST()
312 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()
324 ASSERT_EQ(0, same) TH_LOG("exec() did not change %d keys", same); in TEST()
340 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/hid/
H A Dhid_bpf.c108 TH_LOG(fmt, ##__VA_ARGS__); \
123 TH_LOG("Cannot write to uhid: %m"); in uhid_write()
251 TH_LOG("Cannot poll for fds: %m"); in uhid_read_events_thread()
313 TH_LOG("create uhid device failed: %d", ret); in setup_uhid()
475 TH_LOG(fmt, ##__VA_ARGS__); \
606 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
622 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
651 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
700 ASSERT_EQ(err, 6) TH_LOG("read_hidraw"); in TEST_F()
730 ASSERT_EQ(err, 9) TH_LOG("read_hidraw"); in TEST_F()
[all …]
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c138 TH_LOG("%m - Failed to open /proc/self/ns"); in FIXTURE_SETUP()
147 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
155 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
170 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
240 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
253 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
266 TH_LOG("%m - Failed to open %s namespace for process %d", in FIXTURE_SETUP()
467 TH_LOG("%m - Failed to setns to namespaces of %d", in TEST_F()
488 TH_LOG("Managed to correctly setns to %s namespace of %d", in TEST_F()
528 TH_LOG("Managed to setns to %s namespace of %d via pidfd %d", in TEST_F()
[all …]
H A Dpidfd_getfd_test.c139 TH_LOG("%s: failed to create socketpair", strerror(errno)); in FIXTURE_SETUP()
225 TH_LOG("getfd succeeded while fetching unknown fd"); in TEST_F()
228 TH_LOG("%s: getfd did not get EBADF", strerror(errno)); in TEST_F()
/openbmc/linux/tools/testing/selftests/landlock/
H A Dcommon.h124 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _init_caps()
128 TH_LOG("Failed to cap_clear: %s", strerror(errno)); in _init_caps()
134 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _init_caps()
139 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _init_caps()
143 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _init_caps()
166 TH_LOG("Failed to cap_get_proc: %s", strerror(errno)); in _effective_cap()
170 TH_LOG("Failed to cap_set_flag: %s", strerror(errno)); in _effective_cap()
174 TH_LOG("Failed to cap_set_proc: %s", strerror(errno)); in _effective_cap()
178 TH_LOG("Failed to cap_free: %s", strerror(errno)); in _effective_cap()
H A Dptrace_test.c39 TH_LOG("Failed to create a ruleset: %s", strerror(errno)); in create_domain()
269 TH_LOG("Incomplete tests due to Yama restrictions (scope %d)", in TEST_F()
H A Dfs_test.c187 TH_LOG("Failed to create directory \"%s\": %s", path, in create_directory()
198 TH_LOG("Failed to create file \"%s\": %s", path, in create_file()
621 TH_LOG("Failed to open directory \"%s\": %s", path, in add_path_beneath()
661 TH_LOG("No rule list"); in create_ruleset()
665 TH_LOG("Empty rule list"); in create_ruleset()
1747 TH_LOG("Failed to chroot: %s", strerror(errno)); in test_relative_path()
1755 TH_LOG("Failed to chroot: %s", strerror(errno)); in test_relative_path()
1832 TH_LOG("Failed to open \"" BINARY_PATH "\": %s", in copy_binary()
1853 TH_LOG("Failed to execute \"%s\": %s", path, in test_execute()
4600 TH_LOG("Failed to create directory \"%s\": %s", in FIXTURE_SETUP()
[all …]
/openbmc/linux/tools/testing/selftests/rtc/
H A Drtctest.c122 TH_LOG("Performed %ld RTC time reads.", iter_count);
137 TH_LOG("skip update IRQs not supported.");
166 TH_LOG("skip update IRQs not supported."); in TEST_F()
214 TH_LOG("skip alarms are not supported."); in TEST_F()
221 TH_LOG("Alarm time now set to %02d:%02d:%02d.", in TEST_F()
241 TH_LOG("data: %lx", data); in TEST_F()
274 TH_LOG("skip alarms are not supported."); in TEST_F()
324 TH_LOG("skip alarms are not supported.");
331 TH_LOG("Alarm time now set to %02d:%02d:%02d.",
351 TH_LOG("data: %lx", data);
[all …]
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c358 TH_LOG("Unreachable!"); in TEST_SIGNAL()
1122 TH_LOG("sigaction failed"); in TEST_F()
1126 TH_LOG("sigprocmask failed"); in TEST_F()
2685 TH_LOG("setting filter failed"); in TEST_F()
2700 TH_LOG("cond broadcast non-zero"); in TEST_F()
2743 TH_LOG("cond broadcast non-zero"); in TEST_F()
2768 TH_LOG("cond broadcast non-zero"); in TEST_F()
2808 TH_LOG("cond broadcast non-zero"); in TEST_F()
2853 TH_LOG("cond broadcast non-zero"); in TEST_F()
2902 TH_LOG("cond broadcast non-zero"); in TEST_F()
[all …]
/openbmc/linux/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c93 TH_LOG("Try to rename the VMA with correct parameters"); in TEST_F()
97 TH_LOG("Try to pass invalid name (with non-printable character \\1) to rename the VMA"); in TEST_F()
100 TH_LOG("Try to rename non-anonymous VMA"); in TEST_F()
/openbmc/linux/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c39 TH_LOG("wait #%d: " fmt, \
80 TH_LOG("fork: %m"); in TEST()
87 TH_LOG("PTRACE_TRACEME: %m"); in TEST()
91 TH_LOG("kill SIGSTOP: %m"); in TEST()
H A Dget_set_sud.c29 TH_LOG("PTRACE_TRACEME: %m"); in TEST()
/openbmc/linux/tools/testing/selftests/exec/
H A Dnon-regular.c27 TH_LOG("Not ENOENT: %s", pathname); in rm()
31 TH_LOG("Failed to remove: %s", pathname); in rm()
69 TH_LOG("Could not find viable 'true' binary"); in setup_link()
/openbmc/linux/tools/testing/selftests/mm/
H A Dmdwe_test.c81 TH_LOG("PR_SET_MDWE failed or unsupported"); in FIXTURE_SETUP()
90 TH_LOG("fork failed\n"); in FIXTURE_SETUP()
/openbmc/linux/tools/testing/selftests/user_events/
H A Duser_events_selftests.h102 TH_LOG("Setup failed due to: %s", message); \
/openbmc/linux/tools/testing/selftests/uevent/
H A Duevent_filtering.c354 TH_LOG("Uevent filtering tests require root privileges. Skipping test"); in TEST()
361 TH_LOG(__DEV_FULL " does not exist. Skipping test"); in TEST()
/openbmc/linux/tools/testing/selftests/sgx/
H A Dmain.c188 TH_LOG("Failed to load the test enclave."); in setup_test_encl()
231 TH_LOG("0x%016lx 0x%016lx 0x%02x", seg->offset, seg->size, seg->prot); in setup_test_encl()
240 TH_LOG("%s", maps_line); in setup_test_encl()
246 TH_LOG("Failed to initialize the test enclave."); in setup_test_encl()
278 TH_LOG("0x%02x 0x%02x 0x%016llx", (run)->exception_vector, \
402 TH_LOG("Creating an enclave with %lu bytes heap may take a while ...",
457 TH_LOG("Changing type of %zd bytes to trimmed may take a while ...",
473 TH_LOG("Entering enclave to run EACCEPT for each page of %zd bytes may take a while ...",
494 TH_LOG("Removing %zd bytes from enclave may take a while ...",
/openbmc/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c1080 TH_LOG("failure: created idmapped mount with negative fd"); in TEST_F()
1098 TH_LOG("failure: created idmapped mount with too large fd value"); in TEST_F()
1121 TH_LOG("failure: created idmapped mount with closed fd"); in TEST_F()

12