[Bug 236857] Fix sysctl check for some sys/audit/process-control tests

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 28 20:24:14 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236857

--- Comment #2 from Olivier Cochard <olivier at freebsd.org> ---
Created attachment 203222
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=203222&action=edit
patch (with errno) to skip tests if kernel build without CAPABILITIES

Ok, here is a patch with errno support.

But I don't understand what is the purpose of errno here, because it didn't
give very useful information ?

Output with this -errno version patch applied:

# kyua test sys/audit/process-control:cap_enter_success
sys/audit/process-control:cap_enter_success  ->  skipped: sysctl for
kern.features.security_capability_mode failed: No such file or directory 
[0.003s]

Results file id is usr_tests.20190328-201847-910402
Results saved to /root/.kyua/store/results.usr_tests.20190328-201847-910402.db

1/1 passed (0 failed)

=> The 'No such file or directory' seems misleading for me, because the message
is about a sysctl.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list