diff options
Diffstat (limited to 'src/runtime/debuglog_test.go')
| -rw-r--r-- | src/runtime/debuglog_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/debuglog_test.go b/src/runtime/debuglog_test.go index 10dc72cf51..18c54a81b9 100644 --- a/src/runtime/debuglog_test.go +++ b/src/runtime/debuglog_test.go @@ -24,6 +24,7 @@ package runtime_test import ( "fmt" + "internal/testenv" "regexp" "runtime" "strings" @@ -155,3 +156,14 @@ func TestDebugLogLongString(t *testing.T) { t.Fatalf("want %q, got %q", want, got) } } + +// TestDebugLogBuild verifies that the runtime builds with -tags=debuglog. +func TestDebugLogBuild(t *testing.T) { + testenv.MustHaveGoBuild(t) + + // It doesn't matter which program we build, anything will rebuild the + // runtime. + if _, err := buildTestProg(t, "testprog", "-tags=debuglog"); err != nil { + t.Fatal(err) + } +} |
