summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/debug/stack_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/debug/stack_test.go')
-rw-r--r--libgo/go/runtime/debug/stack_test.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/libgo/go/runtime/debug/stack_test.go b/libgo/go/runtime/debug/stack_test.go
index 0f769ee6ca..67931d17f6 100644
--- a/libgo/go/runtime/debug/stack_test.go
+++ b/libgo/go/runtime/debug/stack_test.go
@@ -50,14 +50,16 @@ func TestStack(t *testing.T) {
check(t, lines[n], line)
n++
}
- frame("stack_test.go", "\tmethod.N15_runtime_debug.T: return Stack()")
- frame("stack_test.go", "\tmethod.N15_runtime_debug.T: return t.ptrmethod()")
- frame("stack_test.go", "\tTestStack: b := T(0).method()")
- frame("testing/testing.go", "")
+ n++
+ frame("stack.go", "runtime_debug.Stack")
+ frame("stack_test.go", "ptrmethod")
+ frame("stack_test.go", "method")
+ frame("stack_test.go", "runtime_debug_test.TestStack")
+ frame("testing.go", "")
}
func check(t *testing.T, line, has string) {
- if strings.Index(line, has) < 0 {
+ if !strings.Contains(line, has) {
t.Errorf("expected %q in %q", has, line)
}
}