]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Fix sporadic test.profiling failures (#1056)
authorjacobly0 <jacobly0@users.noreply.github.com>
Sun, 1 May 2022 16:10:56 +0000 (18:10 +0200)
committerGitHub <noreply@github.com>
Sun, 1 May 2022 16:10:56 +0000 (18:10 +0200)
commitdab7db87865555fd481b8bdc6cdcee93bbba7db3
tree6374dba0259392157fa2e55706497f3ef9a3c10b
parentf2ff4b90b8767ea0bc2d49162d85d5f08d72f24c
fix: Fix sporadic test.profiling failures (#1056)

Using cut, which is always line-based, to remove bytes from a binary file can
cause problems if the binary timestamp field happens to contain a newline
character, which causes test.profiling to fail <1% of the time. Instead use tail
which has a character mode that ignores newlines.
test/suites/profiling.bash