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
F132257169: D46999.diff
Wed, Oct 15, 6:19 AM
Unknown Object (File)
Sat, Oct 4, 6:15 PM
Unknown Object (File)
Sep 12 2025, 10:39 AM
Unknown Object (File)
Sep 12 2025, 8:10 AM
Unknown Object (File)
Sep 1 2025, 10:19 AM
Unknown Object (File)
Aug 14 2025, 10:06 PM
Unknown Object (File)
Aug 9 2025, 9:14 PM
Unknown Object (File)
Aug 6 2025, 2:13 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