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
F173196410: D59284.id185613.diff
Thu, Sep 24, 5:53 AM
F173189415: D59284.diff
Thu, Sep 24, 4:43 AM
F173077038: D59284.id185613.diff
Wed, Sep 23, 10:06 AM
Unknown Object (File)
Sun, Sep 20, 12:16 PM
Unknown Object (File)
Mon, Sep 14, 12:26 AM
Unknown Object (File)
Sun, Sep 13, 10:51 PM
Unknown Object (File)
Sat, Sep 12, 9:54 PM
Unknown Object (File)
Fri, Sep 11, 11:32 PM

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