Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
tests/sys/kern/ptrace_test.c | ||
---|---|---|
4498 | The error handling can just be ATF_REQUIRE(shm != MAP_FAILED); |
Comment Actions
Is there a way to skip the test depending on the sysctl value? Or should I do not bother?
Comment Actions
You can do something like
error = sysctlbyname(..., &val); ATF_REQUIRE(error == 0); if (val) atf_tc_skip(tc, "test doesn't work with sysctl foo set");
For a chicken switch under the debug MIB, I probably wouldn't bother.
tests/sys/kern/ptrace_test.c | ||
---|---|---|
4518 | For completeness, also check that WEXITSTATUS(status) == 0? |