head 1.4; access; symbols netbsd-11-0-RC4:1.4 netbsd-11-0-RC3:1.4 netbsd-11-0-RC2:1.4 netbsd-11-0-RC1:1.4 perseant-exfatfs-base-20250801:1.4 netbsd-11:1.4.0.6 netbsd-11-base:1.4 netbsd-10-1-RELEASE:1.4 perseant-exfatfs-base-20240630:1.4 perseant-exfatfs:1.4.0.4 perseant-exfatfs-base:1.4 netbsd-10-0-RELEASE:1.4 netbsd-10-0-RC6:1.4 netbsd-10-0-RC5:1.4 netbsd-10-0-RC4:1.4 netbsd-10-0-RC3:1.4 netbsd-10-0-RC2:1.4 netbsd-10-0-RC1:1.4 netbsd-10:1.4.0.2 netbsd-10-base:1.4 cjep_sun2x-base1:1.1 cjep_sun2x:1.1.0.4 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 cjep_staticlib_x:1.1.0.2 cjep_staticlib_x-base:1.1; locks; strict; comment @# @; 1.4 date 2022.09.03.08.03.27; author rillig; state Exp; branches; next 1.3; commitid EJQxmtDJRoHshoSD; 1.3 date 2021.09.12.10.26.49; author rillig; state Exp; branches; next 1.2; commitid KBnHIKW5AeczwE8D; 1.2 date 2021.07.03.22.39.40; author rillig; state Exp; branches; next 1.1; commitid E2vwRfWo9W76RAZC; 1.1 date 2021.04.15.19.02.29; author rillig; state Exp; branches; next ; commitid r0D1HUJq2R2QcqPC; desc @@ 1.4 log @make: fix handling of null bytes in the output in jobs mode The test job-output-null failed occasionally, depending on the exact timing of the child's write and make's read. @ text @1 trailing 2a trailing 2b trailing 2c trailing 3a without newline, 3b without newline. exit status 0 @ 1.3 log @tests/make: make output of test job-output-null clearer Having 5 times the word 'hello' in the output doesn't help at understanding the test and how the output was produced. Bash 5 sometimes makes this test fail by adding '2b' and '2c' to the output. @ text @d1 4 a4 2 1 2a @ 1.2 log @tests/make: make test job-output-null more portable Previously, the test dependend on implementation details of the system's printf command. Thank you sjg for the detailed analysis on macOS, FreeBSD and Linux. @ text @d1 3 a3 3 hello hello hello without newline, hello without newline. @ 1.1 log @tests/make: demonstrate handling of null bytes @ text @d3 1 a3 1 hello world without newline, hello world without newline, hello world without newline. @