]> 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>
Wed, 17 Mar 2021 12:23:57 +0000 (12:23 +0000)
commit6a68c094ed1be74fd5556ac716c8bb12f3564f82
tree4e9c71ec6385a63e6a91260b512b26ec0417faf4
parent4b6082c4985cc3d17b22f9734357837b62587232
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

(cherry picked from commit 96a9e50e63bfcbca7309c012c2c7a477c8826824)
tests/sys/kern/ptrace_test.c