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
F171294881: D59284.id185613.diff
Thu, Sep 10, 5:18 AM
F171294542: D59284.id185464.diff
Thu, Sep 10, 5:15 AM
Unknown Object (File)
Tue, Sep 8, 5:44 PM
Unknown Object (File)
Tue, Sep 8, 4:47 PM
Unknown Object (File)
Tue, Sep 8, 12:39 PM
Unknown Object (File)
Tue, Sep 8, 11:57 AM
Unknown Object (File)
Tue, Sep 8, 8:38 AM
Unknown Object (File)
Tue, Sep 8, 8:29 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76342
Build 73225: arc lint + arc unit