diff options
author | Tobias Bosch <tbosch@google.com> | 2019-07-10 06:16:04 -0700 |
---|---|---|
committer | Tobias Bosch <tbosch@google.com> | 2019-07-11 08:28:44 +0000 |
commit | 9d60930e882d0e39b48e6dfab0bffa12f6f544ee (patch) | |
tree | d391ca536e9371ee9c7431f0f195a88c42ae47c8 /compiler_wrapper/clang_tidy_flag_test.go | |
parent | 9332d21c19199f99886b1476cab6f4dd89e82a72 (diff) | |
download | toolchain-utils-9d60930e882d0e39b48e6dfab0bffa12f6f544ee.tar.gz |
Support resource usage logging
BUG=chromium:773875
TEST=unit test
Change-Id: Ifc0a7311b439e767dbb83bee350c210abbff54e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1695802
Reviewed-by: Tobias Bosch <tbosch@google.com>
Tested-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/clang_tidy_flag_test.go')
-rw-r--r-- | compiler_wrapper/clang_tidy_flag_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_wrapper/clang_tidy_flag_test.go b/compiler_wrapper/clang_tidy_flag_test.go index 1cfd40ba..9c0fc928 100644 --- a/compiler_wrapper/clang_tidy_flag_test.go +++ b/compiler_wrapper/clang_tidy_flag_test.go @@ -102,8 +102,8 @@ func TestForwardStdOutAndStderrFromClangTidyCall(t *testing.T) { withClangTidyTestContext(t, func(ctx *testContext) { ctx.cmdMock = func(cmd *command, stdout io.Writer, stderr io.Writer) error { if ctx.cmdCount == 2 { - fmt.Fprintf(stdout, "somemessage") - fmt.Fprintf(stderr, "someerror") + fmt.Fprint(stdout, "somemessage") + fmt.Fprint(stderr, "someerror") } return nil } |