criu/compel
Haorong Lu 4455444eeb compel/test: Return 0 in case of error in fdspy
This commit revises the error handling in the fdspy test. Previously,
a failure case could have been incorrectly reported as successful because
of a specific check `pass != 0`, leading to potential false positives
when `check_pipe_ends()` returned `-1` due to a read/write pipe error.

To improve this, we've adjusted the error handling to return `0` in case
of any error. As such, the final success condition remains unchanged. This
approach will help accurately differentiate between successful and failed
cases, ensuring the output "All OK" is printed for success, and "Something
went WRONG" for any failure.

Fixes: 5364ca3 ("compel/test: Fix warn_unused_result")

Signed-off-by: Haorong Lu <ancientmodern4@gmail.com>
2023-10-22 13:29:25 -07:00
..
arch Fill FPU init state if it's not provided by kernel. 2023-10-22 13:29:25 -07:00
include log: remove all uses of %m specifier in pr_* functions 2023-04-15 21:17:21 -07:00
plugins kerndat: check whether the openat2 syscall is supported 2022-04-28 17:53:52 -07:00
src compel/mips: fix parasite with GCC 12 2023-04-15 21:17:21 -07:00
test compel/test: Return 0 in case of error in fdspy 2023-10-22 13:29:25 -07:00
.gitignore compel: adapt .gitgnore for aarch64 and ppc64le 2017-08-09 18:51:42 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile x86: Use PTRACE_GET_THREAD_AREA instead of sys_get_thread_area() 2021-09-03 10:31:00 -07:00