| 1 |
// Copyright 2020 Marc-Antoine Ruel. All rights reserved. |
| 2 |
// Use of this source code is governed under the Apache License, Version 2.0 |
| 3 |
// that can be found in the LICENSE file. |
| 4 |
|
| 5 |
package internaltest |
| 6 |
|
| 7 |
// staticPanicRace is a snapshot created with: |
| 8 |
// |
| 9 |
// go install -race github.com/maruel/panicparse/cmd/panic |
| 10 |
// panic race |& sed "s#$HOME##g" |
| 11 |
// |
| 12 |
// when installed within $GOPATH. |
| 13 |
const staticPanicRace = ` |
| 14 |
GOTRACEBACK=all |
| 15 |
================== |
| 16 |
WARNING: DATA RACE |
| 17 |
Read at 0x00c000014100 by goroutine 8: |
| 18 |
main.panicDoRaceRead() |
| 19 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:137 +0x3a |
| 20 |
main.panicRace.func2() |
| 21 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:154 +0x38 |
| 22 |
|
| 23 |
Previous write at 0x00c000014100 by goroutine 7: |
| 24 |
main.panicDoRaceWrite() |
| 25 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:132 +0x41 |
| 26 |
main.panicRace.func1() |
| 27 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:151 +0x38 |
| 28 |
|
| 29 |
Goroutine 8 (running) created at: |
| 30 |
main.panicRace() |
| 31 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:153 +0xa1 |
| 32 |
main.main() |
| 33 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:54 +0x6c8 |
| 34 |
|
| 35 |
Goroutine 7 (running) created at: |
| 36 |
main.panicRace() |
| 37 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:150 +0x7f |
| 38 |
main.main() |
| 39 |
/go/src/github.com/maruel/panicparse/cmd/panic/main.go:54 +0x6c8 |
| 40 |
================== |
| 41 |
` |