Page MenuHomeFreeBSD

tests/sys/netinet/tcp_socket: fix build with ATF 0.22+
ClosedPublic

Authored by ngie on Mon, Aug 31, 2:36 AM.
Tags
None
Referenced Files
F169706637: D59284.id.diff
Wed, Sep 2, 8:32 AM
F169685228: D59284.diff
Wed, Sep 2, 7:12 AM
F169683719: D59284.diff
Wed, Sep 2, 7:07 AM
F169641994: D59284.diff
Wed, Sep 2, 3:51 AM
F169610983: D59284.diff
Wed, Sep 2, 1:40 AM
Unknown Object (File)
Tue, Sep 1, 2:37 PM
Unknown Object (File)
Mon, Aug 31, 8:28 AM
Unknown Object (File)
Mon, Aug 31, 7:02 AM

Details

Summary

Confirm that creating clients/sockets was successful by testing the
result separate from the assignment and test that the return value is
not -1 instead of testing that the value returned is non-zero.

This fixes the build with [ATF 0.22+][1].

MFC after: 2 weeks
Reported by: clang (-Wparenthesis)

1: https://github.com/freebsd/atf/pull/72

Test Plan

The test passes after this change.

Diff Detail

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