]> Cypherpunks repositories - gostls13.git/commit
os: fix TestRootChtimes on illumos
authorTobias Klauser <tklauser@distanz.ch>
Fri, 11 Apr 2025 12:11:37 +0000 (14:11 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 11 Apr 2025 20:20:16 +0000 (13:20 -0700)
commitf9670787122a732fb7d81cf64856ab6c50904e17
tree3514cbaf87462f82054ac02f34f41707c85ff2df
parent3968a5bca4fc0cdb4e2bb9fd6169deafdafc420d
os: fix TestRootChtimes on illumos

TestRootChtimes currently fails on illumos [1] because the times
returned by os.Stat have only microsecond precision on that builder.
Truncate them to make the test pass again.

[1] https://build.golang.org/log/9780af24c3b3073dae1d827b2b9f9e3a48912c30

Change-Id: I8cf895d0b60c854c27cb4faf57c3b44bd40bfdd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/664915
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Bypass: Damien Neil <dneil@google.com>
src/os/root_test.go