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)
Dec 2 2024, 3:49 PM
Unknown Object (File)
Nov 29 2024, 11:27 AM
Unknown Object (File)
Nov 28 2024, 11:30 PM
Unknown Object (File)
Nov 24 2024, 7:31 AM
Unknown Object (File)
Nov 24 2024, 7:30 AM
Unknown Object (File)
Nov 24 2024, 7:30 AM
Unknown Object (File)
Nov 23 2024, 4:56 AM
Unknown Object (File)
Nov 8 2024, 7:44 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