New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/sys/unix: TestUtimesNanoAt fails #26034
Comments
cc @tklauser |
I guess we should do the same as https://golang.org/cl/114616 did for TestStatx and just drop the atime comparison since not all filesystems support atime or it might be disabled by the |
Change https://golang.org/cl/120562 mentions this issue: |
@ianlancetaylor @bradfitz should the vendored copy in cmd be updated as well to fix this? I can send another CL once https://golang.org/cl/120562 is reviewed and submitted. |
Thanks for the fast response, but now I'm getting
That drive wasn't mounted noatime (though I'm sure somebody has such a set up so that was legitimate change, nonetheless). That time struct is (seconds, nanoseconds). For both, my system is returning the correct seconds but 0 nanoseconds. It's truncating it. I'm guessing my fs doesn't record ns in timestamps. |
@tklauser there are a lot of file systems and they appear to have different time stamps resolution, though all the newer ones are quite precise. The LCD seems to be 1-second resolution so maybe the test should only test that? |
@jimmyfrasche ah yes, I wasn't considering filesystems which don't support nanosecond resolution time stamps. I'll send a followup CL. Thanks for testing and the fast feedback! |
Change https://golang.org/cl/120816 mentions this issue: |
@tklauser do send a CL updating the vendored unix repo. This issue is keeping the linux-arm-arm5spacemonkey builder consistently red: https://build.golang.org/log/db415f5587cf146294712dad6ae50ef6e358544f |
Change https://golang.org/cl/121800 mentions this issue: |
TestUtimesNanoAt in the vendored copy of golang.org/x/sys/unix currently fails on the linux-arm-arm5spacemonkey builder. Update the vendored copy to pick up the fix from CL 120816. Updates #26034 Change-Id: I75c8875089f58a4c32e2e7aa75884b2bcba7bd68 Reviewed-on: https://go-review.googlesource.com/121800 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
I'm not entirely sure what UtimesNanoAt is, but looking at the test it appears my system doesn't record the nanoseconds.
This could be because of the hilariously old file system on this very old mount:
Since this is vendored in cmd, I can't build tip without adding a t.Skip() to the test
System details
The text was updated successfully, but these errors were encountered: