aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/compiler_wrapper_test.go
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2021-09-20 19:54:48 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-09-20 19:54:48 +0000
commita5563f87c4cc8c7ad74863cab522a658559d5ac1 (patch)
tree97dfb2f67dc005acec3bd24ba5f1334be2f90c09 /compiler_wrapper/compiler_wrapper_test.go
parent62d7b3623cf52298dc4f25eeaabf8963119b0c12 (diff)
parentc2567cdcc24bd29c3804e1c3e30757739d0670f8 (diff)
downloadtoolchain-utils-a5563f87c4cc8c7ad74863cab522a658559d5ac1.tar.gz
Merging 48 commit(s) from Chromium's toolchain-utils am: 49872359c8 am: c2567cdcc2
Original change: https://android-review.googlesource.com/c/platform/external/toolchain-utils/+/1831012 Change-Id: Ifc868030e4614765ec7c0a14028800740acec650
Diffstat (limited to 'compiler_wrapper/compiler_wrapper_test.go')
-rw-r--r--compiler_wrapper/compiler_wrapper_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler_wrapper/compiler_wrapper_test.go b/compiler_wrapper/compiler_wrapper_test.go
index fd59cfe1..74fe3f58 100644
--- a/compiler_wrapper/compiler_wrapper_test.go
+++ b/compiler_wrapper/compiler_wrapper_test.go
@@ -126,6 +126,8 @@ func TestGomaDisablesRusage(t *testing.T) {
func TestLogRusageAndForceDisableWError(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
+ ctx.NoteTestWritesToUmask()
+
logFileName := filepath.Join(ctx.tempDir, "rusage.log")
ctx.env = []string{
"FORCE_DISABLE_WERROR=1",
@@ -157,6 +159,8 @@ func TestLogRusageAndForceDisableWError(t *testing.T) {
func TestErrorOnLogRusageAndBisect(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
+ ctx.NoteTestWritesToUmask()
+
ctx.env = []string{
"BISECT_STAGE=xyz",
"TOOLCHAIN_RUSAGE_OUTPUT=rusage.log",
@@ -170,6 +174,8 @@ func TestErrorOnLogRusageAndBisect(t *testing.T) {
func TestErrorOnBisectAndForceDisableWError(t *testing.T) {
withTestContext(t, func(ctx *testContext) {
+ ctx.NoteTestWritesToUmask()
+
ctx.env = []string{
"BISECT_STAGE=xyz",
"FORCE_DISABLE_WERROR=1",