Page MenuHomeFreeBSD

capsicum-test: skip SCTP tests if SCTP not available
ClosedPublic

Authored by emaste on Oct 7 2024, 8:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 2:15 PM
Unknown Object (File)
Tue, Apr 14, 6:36 AM
Unknown Object (File)
Thu, Apr 9, 10:46 PM
Unknown Object (File)
Thu, Apr 9, 1:46 AM
Unknown Object (File)
Tue, Apr 7, 12:05 AM
Unknown Object (File)
Mon, Apr 6, 4:40 PM
Unknown Object (File)
Mon, Mar 30, 8:11 AM
Unknown Object (File)
Sun, Mar 29, 7:57 PM
Subscribers

Details

Summary

If SCTP is not available the test should be skipped, not fail.

Sample output:

Note: Google Test filter = Sctp.Socket
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
Generating temporary directory root: /tmp/cptst8IjSVg
[----------] 1 test from Sctp
[ RUN      ] Sctp.Socket
/home/emaste/src/freebsd-git/wipbsd/contrib/capsicum-test/sctp.cc:65: Skipped
socket(..., IPPROTO_SCTP) -> EPROTONOSUPPORT

[  SKIPPED ] Sctp.Socket (0 ms)
[----------] 1 test from Sctp (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  SKIPPED ] 1 test, listed below:
[  SKIPPED ] Sctp.Socket

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable