diff options
Diffstat (limited to 'compiler_wrapper/ccache_flag_test.go')
-rw-r--r-- | compiler_wrapper/ccache_flag_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler_wrapper/ccache_flag_test.go b/compiler_wrapper/ccache_flag_test.go index 50205312..d6eeb926 100644 --- a/compiler_wrapper/ccache_flag_test.go +++ b/compiler_wrapper/ccache_flag_test.go @@ -174,3 +174,16 @@ func TestRusagePreventsCCache(t *testing.T) { } }) } + +func TestCcacheIsDisabledInSrcConfigure(t *testing.T) { + withCCacheEnabledTestContext(t, func(ctx *testContext) { + ctx.NoteTestWritesToUmask() + + ctx.env = append(ctx.env, "EBUILD_PHASE=configure") + cmd := ctx.must(callCompiler(ctx, ctx.cfg, + ctx.newCommand(gccX86_64, mainCc))) + if err := verifyPath(cmd, gccX86_64+".real"); err != nil { + t.Error(err) + } + }) +} |