atomicfile: only run test on Linux.

macOS doesn't like the test, in the setup where it creates a unix-domain
socket:
```
atomicfile_test.go:27: listen unix
/var/folders/_2/42v283xx1xgbjdbyvhlm13hc0000gp/T/TestDoesNotOverwriteIrregularFiles1507752327/001/special:
bind: invalid argument
```

I think at this point we should assume the socket
as written in the test only works on Linux.

Updates #7658

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
dgentry/atomicfile
Denton Gentry 2023-04-04 08:21:15 -07:00
parent 6d5c3c1637
commit 765b519643
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !js && !windows
//go:build linux
package atomicfile