Broken in
5141405 (Update dependencies, static checkers and Go to 1.24,
2025-10-17) which switched from manually creating the directory to using
t.TempDir().
if err != nil {
t.Fatal(err)
}
+ // On BSD systems directories created under /tmp inherit the wheel
+ // group which would break the tests.
+ err = os.Chown(path, os.Getuid(), os.Getgid())
+ if err != nil {
+ t.Fatal(err)
+ }
t.Chdir(path)
if tc.prepare != nil {
if err != nil {
t.Fatal(err)
}
+ // On BSD systems directories created under /tmp inherit the wheel
+ // group which would break the tests.
+ err = os.Chown(path, os.Getuid(), os.Getgid())
+ if err != nil {
+ t.Fatal(err)
+ }
t.Chdir(path)
if tc.prepare != nil {