@@ -108,7 +108,6 @@ import "fmt"
108
108
import "runtime"
109
109
var gslice []string
110
110
func main() {
111
- go func() { select{} }() // ensure a second goroutine is running
112
111
mapvar := make(map[string]string, 13)
113
112
mapvar["abc"] = "def"
114
113
mapvar["ghi"] = "jkl"
@@ -231,9 +230,6 @@ func testGdbPython(t *testing.T, cgo bool) {
231
230
"-ex" , "echo BEGIN goroutine 1 bt\n " ,
232
231
"-ex" , "goroutine 1 bt" ,
233
232
"-ex" , "echo END\n " ,
234
- "-ex" , "echo BEGIN goroutine 2 bt\n " ,
235
- "-ex" , "goroutine 2 bt" ,
236
- "-ex" , "echo END\n " ,
237
233
"-ex" , "echo BEGIN goroutine all bt\n " ,
238
234
"-ex" , "goroutine all bt" ,
239
235
"-ex" , "echo END\n " ,
@@ -310,20 +306,14 @@ func testGdbPython(t *testing.T, cgo bool) {
310
306
311
307
// Check that the backtraces are well formed.
312
308
checkCleanBacktrace (t , blocks ["goroutine 1 bt" ])
313
- checkCleanBacktrace (t , blocks ["goroutine 2 bt" ])
314
309
checkCleanBacktrace (t , blocks ["goroutine 1 bt at the end" ])
315
310
316
311
btGoroutine1Re := regexp .MustCompile (`(?m)^#0\s+(0x[0-9a-f]+\s+in\s+)?main\.main.+at` )
317
312
if bl := blocks ["goroutine 1 bt" ]; ! btGoroutine1Re .MatchString (bl ) {
318
313
t .Fatalf ("goroutine 1 bt failed: %s" , bl )
319
314
}
320
315
321
- btGoroutine2Re := regexp .MustCompile (`(?m)^#0\s+(0x[0-9a-f]+\s+in\s+)?runtime.+at` )
322
- if bl := blocks ["goroutine 2 bt" ]; ! btGoroutine2Re .MatchString (bl ) {
323
- t .Fatalf ("goroutine 2 bt failed: %s" , bl )
324
- }
325
-
326
- if bl := blocks ["goroutine all bt" ]; ! btGoroutine1Re .MatchString (bl ) || ! btGoroutine2Re .MatchString (bl ) {
316
+ if bl := blocks ["goroutine all bt" ]; ! btGoroutine1Re .MatchString (bl ) {
327
317
t .Fatalf ("goroutine all bt failed: %s" , bl )
328
318
}
329
319
0 commit comments