Skip to content

Shell scripts do not work correctly on macOS #22

@danhd123

Description

@danhd123

While attempting to add Objective-C (NSJSONSerialization) tests, I found that the test scripts do not work correctly on macOS; the output is always 2. The first time I ran it, I got a number of Abort Traps from broken pipes between the scripts:

./utils/binary_search.sh: line 1: 65239 Broken pipe: 13 ./utils/deep_json_array.sh $n 65240 Abort trap: 6 | $json_parsing_command 2> /dev/null > /dev/null
repeated several times with different process numbers, followed by
./utils/binary_search.sh: line 1: 65292 Done ./utils/deep_json_array.sh $n 65293 Abort trap: 6 | $json_parsing_command 2> /dev/null > /dev/null
repeated several times with different process numbers, followed by
2
Subsequent runs just output 2

(Running the tests manually, NSJSONSerialization tops out at 512 levels of nesting.)

macOS 10.14.6, GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needinfoMore information is required before the issue can be adressed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions