Skip to content

getopt failing on aarch64 #5

@doanac

Description

@doanac

Running make check on aarch will result in:

sh -c './wait4ports -q -t 1 -s 1 tcp://127.0.0.1:65535 ; status=$? ; [ $status -eq 255 ] || [ $status -eq 0 ]'
Usage: ./wait4ports [-q] [-s <interval_seconds>] [-t <timeout_seconds>] [<name>=]<protocol>://<host>:<port> [...]

It turns out to be the same issue as SWIFTSIM/SWIFT#17. This char value on aarch64 winds up as 255 instead of -1. Changing from char c to int c fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions