tests: fix tests on Go 1.23 (#3697)

* Adjust rtype.go script to handle constants moved to internal/abi from
  runtime
* Remove tests in service/dap/server_test that relied on knowledge of
  the internal layout of channels.
This commit is contained in:
Alessandro Arzilli
2024-04-11 18:40:57 +02:00
committed by GitHub
parent d7f104bf9c
commit 2e88b7ead3
5 changed files with 25 additions and 16 deletions

View File

@ -15,10 +15,10 @@ import (
// some extra flags defined here.
// See equivalent declaration in $GOROOT/src/reflect/type.go
const (
kindDirectIface = 1 << 5 // +rtype kindDirectIface
kindGCProg = 1 << 6 // +rtype kindGCProg
kindDirectIface = 1 << 5 // +rtype kindDirectIface|internal/abi.KindDirectIface
kindGCProg = 1 << 6 // +rtype kindGCProg|internal/abi.KindGCProg
kindNoPointers = 1 << 7
kindMask = (1 << 5) - 1 // +rtype kindMask
kindMask = (1 << 5) - 1 // +rtype kindMask|internal/abi.KindMask
)
type runtimeTypeDIE struct {