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)
Sun, Jan 18, 2:27 PM
Unknown Object (File)
Dec 22 2025, 8:54 AM
Unknown Object (File)
Dec 9 2025, 7:09 AM
Unknown Object (File)
Dec 5 2025, 7:22 PM
Unknown Object (File)
Nov 30 2025, 3:15 PM
Unknown Object (File)
Nov 28 2025, 6:12 PM
Unknown Object (File)
Nov 18 2025, 7:01 AM
Unknown Object (File)
Nov 18 2025, 5:58 AM
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