From: Shengjing Zhu Date: Wed, 14 Aug 2024 19:27:26 +0800 Subject: Skip inconsistent tests for Go1.23 --- interp/interp_consistent_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/interp/interp_consistent_test.go b/interp/interp_consistent_test.go index 870997d..8aadd21 100644 --- a/interp/interp_consistent_test.go +++ b/interp/interp_consistent_test.go @@ -23,6 +23,8 @@ var testsToSkipGo122 = map[string]bool{"closure9.go": true, "closure10.go": true var go122 = strings.HasPrefix(runtime.Version(), "go1.22") +var go123 = strings.HasPrefix(runtime.Version(), "go1.23") + func TestInterpConsistencyBuild(t *testing.T) { if testing.Short() { t.Skip("short mode") @@ -134,7 +136,7 @@ func TestInterpConsistencyBuild(t *testing.T) { if go121 && testsToSkipGo121[file.Name()] { continue } - if go122 && testsToSkipGo122[file.Name()] { + if (go122 || go123) && testsToSkipGo122[file.Name()] { continue } @@ -317,6 +319,10 @@ func TestInterpErrorConsistency(t *testing.T) { for _, test := range testCases { t.Run(test.fileName, func(t *testing.T) { + if go123 && test.fileName == "switch13.go" { + t.Skip() + } + if test.expectedInterp == "" && test.expectedExec == "" { t.Fatal("at least expectedInterp must be defined") }