]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip TestTracebackInlined if inlining is disabled
authorAustin Clements <austin@google.com>
Fri, 10 Mar 2023 17:33:24 +0000 (12:33 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 10 Mar 2023 17:46:38 +0000 (17:46 +0000)
This should fix the noopt builders.

Change-Id: I49aa374f4d372803599cd2d2a7a29833b379ce1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/475376
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Austin Clements <austin@google.com>

src/runtime/traceback_test.go

index b0a383ae71d62026eeb5096e2073fe35ada903ab..a47ddb61c53f72cc80a2dda255d0bf8daf5ff737 100644 (file)
@@ -19,6 +19,7 @@ import (
 
 // Test traceback printing of inlined frames.
 func TestTracebackInlined(t *testing.T) {
+       testenv.SkipIfOptimizationOff(t) // This test requires inlining
        check := func(t *testing.T, r *ttiResult, funcs ...string) {
                t.Helper()