Skip to content

cmd/compile: checkEnabled causes some debug lines tests to fail #54029

@randall77

Description

@randall77

If you set cmd/compile/internal/ssa/compile.go:checkEnabled to true and run all.bash, some tests fail.

cmd/compile/internal/ssa/debug_lines_test.go
  TestDebugLinesSayHi
  TestDebugLinesPushback
  TestDebugLinesConvert
cmd/compile/internal/ssa/stmtlines_test.go
  TestStmtLines

I suspect this is the randomization done in cmd/compile/internal/ssa/compile.go when checkEnabled is set.

There is a secondary question here, which is why these tests don't already fail on the ssacheck builder. Maybe the GO_GCFLAGS setting doesn't make it through to the subprocess those tests use?

@dr2chase

Metadata

Metadata

Assignees

Labels

NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions