aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/race/output_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-02-25 19:16:18 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-02-25 18:57:28 +0000
commitdb44223fde80485132f477a51b690d5d54dad56e (patch)
treef9a28cc051dc896f8f96f7df96188b6e1ea32f7e /src/runtime/race/output_test.go
parent30f93f09944c54147bec9e5c39631f17addd94c7 (diff)
downloadgo-db44223fde80485132f477a51b690d5d54dad56e.tar.gz
go-db44223fde80485132f477a51b690d5d54dad56e.zip
runtime: fix getcallerpc args
Change-Id: I6b14b8eecf125dd74bd40f4e7fff6b49de150e42 Reviewed-on: https://go-review.googlesource.com/19897 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/race/output_test.go')
-rw-r--r--src/runtime/race/output_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/runtime/race/output_test.go b/src/runtime/race/output_test.go
index 0c71a019dd5..27d9efb6871 100644
--- a/src/runtime/race/output_test.go
+++ b/src/runtime/race/output_test.go
@@ -180,4 +180,21 @@ func TestFail(t *testing.T) {
PASS
Found 1 data race\(s\)
FAIL`},
+
+ {"slicebytetostring_pc", "run", "atexit_sleep_ms=0", `
+package main
+func main() {
+ done := make(chan string)
+ data := make([]byte, 10)
+ go func() {
+ done <- string(data)
+ }()
+ data[0] = 1
+ <-done
+}
+`, `
+ runtime\.slicebytetostring\(\)
+ .*/runtime/string\.go:.*
+ main\.main\.func1\(\)
+ .*/main.go:7`},
}