aboutsummaryrefslogtreecommitdiff
path: root/performance-test
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2021-05-06 17:12:32 +0300
committerDavid Bremner <david@tethera.net>2021-05-23 08:05:15 -0300
commitf2533b9e730c12276c32abe7126d7eabc7fcb8c6 (patch)
treeee58ce7f30e0bc37a4b8a03eb44fae8eba32836d /performance-test
parent69c2c930ecbcba0c7f0b340db478e58ca218bf87 (diff)
test: say_color() in one write(2)
say_color() used to call (builtin) printf (and tput(1) to stdout) several times, which caused attempts to write messages with color to have partial content (e.g. escape sequences) often intermixed with other tests when parallel tests were run. Now, with all output collected, then written out using one printf, all strings with color print out correctly ((at least short) write(2)'s appear to write out "atomically"). While at it, used only one tput(1) execution to determine whether color output works, and made bold/colors/sgr0 to tput(1) their values once per test.
Diffstat (limited to 'performance-test')
0 files changed, 0 insertions, 0 deletions