@@ -96,6 +96,9 @@ func Test(t *testing.T) {
96
96
if strings .HasPrefix (builder , "darwin-" ) || strings .Contains (builder , "solaris" ) {
97
97
t .Skip ("golang/go#64473: skipping with -short: this test is too slow on darwin and solaris builders" )
98
98
}
99
+ if strings .HasSuffix (builder , "freebsd-amd64-race" ) {
100
+ t .Skip ("golang/go#71731: the marker tests are too slow to run on the amd64-race builder" )
101
+ }
99
102
}
100
103
// The marker tests must be able to run go/packages.Load.
101
104
testenv .NeedsGoPackages (t )
@@ -658,7 +661,7 @@ type stringListValue []string
658
661
659
662
func (l * stringListValue ) Set (s string ) error {
660
663
if s != "" {
661
- for _ , d := range strings .Split (s , "," ) {
664
+ for d := range strings .SplitSeq (s , "," ) {
662
665
* l = append (* l , strings .TrimSpace (d ))
663
666
}
664
667
}
@@ -1838,7 +1841,7 @@ func removeDiagnostic(mark marker, loc protocol.Location, matchEnd bool, re *reg
1838
1841
diags := mark .run .diags [key ]
1839
1842
for i , diag := range diags {
1840
1843
if re .MatchString (diag .Message ) && (! matchEnd || diag .Range .End == loc .Range .End ) {
1841
- mark .run .diags [key ] = append (diags [: i ], diags [ i + 1 :] ... )
1844
+ mark .run .diags [key ] = slices . Delete (diags , i , i + 1 )
1842
1845
return diag , true
1843
1846
}
1844
1847
}
0 commit comments