]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ptrace_test: Add more debug output on test failures
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 1 Mar 2021 18:49:31 +0000 (18:49 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 1 Mar 2021 19:55:43 +0000 (19:55 +0000)
commit96a9e50e63bfcbca7309c012c2c7a477c8826824
tree63f3532f4f5a2748c74396767b43c5f3534ee9bc
parent60c4ec806dfd0f79edf8ca3abc04bbb69c0418f7
ptrace_test: Add more debug output on test failures

Mostly automatic, using
`CHILD_REQUIRE\(([^|&\n]*) ==` -> `CHILD_REQUIRE_EQ_INT($1,`
`ATF_REQUIRE\(([^|&\n]*) ==` -> `REQUIRE_EQ_INT($1,` followed by
git-clang-format -f and then manually checking ones that contain ||/&&.

Test Plan:
Still getting the same failure but now it prints
`psr.sr_error (0) == EBADF (9) not met` instead of just failing
without printing the values.

PR: 243605
Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D28887
tests/sys/kern/ptrace_test.c