aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testutil_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/testutil_test.go')
-rw-r--r--compiler_wrapper/testutil_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler_wrapper/testutil_test.go b/compiler_wrapper/testutil_test.go
index 463e34ac..8bac479b 100644
--- a/compiler_wrapper/testutil_test.go
+++ b/compiler_wrapper/testutil_test.go
@@ -39,7 +39,6 @@ type testContext struct {
tempDir string
env []string
cfg *config
- inputCmd *command
lastCmd *command
cmdCount int
cmdMock func(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
@@ -192,8 +191,11 @@ func (ctx *testContext) mustFail(exitCode int) string {
func (ctx *testContext) updateConfig(cfg *config) {
*ctx.cfg = *cfg
ctx.cfg.newWarningsDir = filepath.Join(ctx.tempDir, "fatal_clang_warnings")
- ctx.cfg.triciumNitsDir = filepath.Join(ctx.tempDir, "tricium_nits")
ctx.cfg.crashArtifactsDir = filepath.Join(ctx.tempDir, "clang_crash_diagnostics")
+
+ // Ensure this is always empty, so any test that depends on it will see no output unless
+ // it's properly set up.
+ ctx.cfg.newWarningsDir = ""
}
func (ctx *testContext) newCommand(path string, args ...string) *command {