HriI, On Tue, Jul 19, 2022 at 10:15:55AM +0200, Samuel Lid�n Borell wrote:
The strace output looks good to me. But did you check the strace.out file, that the test creates? The test will fail if it contains this string: /path/to/some/place/that/does/not/possibly/exist Maybe something is causing that string to be printed.
```
strace -o t0109.out ./t0109-gitconfig.sh
I just grep the log I think that it is usefully:
write(1, "\33[1m\33[31mnot ok 7 - do not acces"..., 58) = 58
pipe2([8, 9], 0) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x3faefb7c70) = 388102
close(9) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x3faefb7c70) = 388103
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=388102, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 388103
close(8) = 0
close(-1) = -1 EBADF (Bad file descriptor)
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 388102
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 388103
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=388103, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 388103
wait4(-1, 0x3ffabbc3ec, WNOHANG, NULL) = -1 ECHILD (No child processes)
fcntl(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
dup3(3, 1, 0) = 1
write(1, "\n", 1) = 1
dup3(11, 1, 0) = 1
close(11) = 0
fcntl(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
dup3(3, 1, 0) = 1
write(1, "\33[36mexpecting success of 0109.8"..., 108) = 108
dup3(11, 1, 0) = 1
close(11) = 0
pipe2([8, 9], 0) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x3faefb7c70) = 388104
close(9) = 0
read(8, "OK-117\n", 128) = 7
read(8, "", 128) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=388104, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 0
close(8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 388104
wait4(-1, 0x3ffabbbdac, WNOHANG, NULL) = -1 ECHILD (No child processes)
pipe2([8, 9], 0) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x3faefb7c70) = 388106
close(9) = 0
read(8, "", 128) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=388106, si_uid=0,
si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 0
close(8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 388106
wait4(-1, 0x3ffabbbd4c, WNOHANG, NULL) = -1 ECHILD (No child processes)
The full log is attachment. It seem that the $non_existent_path does not
add (date %N) string.
Bo
Best Regards, Samuel
-- Best Regards
signature.asc
Description: PGP signature
