-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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)