diff options
author | Jakob Unterwurzacher | 2017-02-16 19:37:10 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-16 19:39:56 +0100 |
commit | 0b19e637c986f602dad95be2570b2bd125677714 (patch) | |
tree | f0aa899e500d53db2a5e6bf4a81a55134139aa84 /tests/matrix/matrix_test.go | |
parent | 8bbc1038fe47a122e4d3854a37e6afe1afdc17bb (diff) |
tests: OSX compat: wrap Stat_t atime extract
Linux has st.Atim, st.Mtim,
OSX hat st.Atimespec, st.Mtimespec.
Reported at https://github.com/rfjakob/gocryptfs/issues/15#issuecomment-279130217
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r-- | tests/matrix/matrix_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 9bb5bac..8508e5b 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -725,7 +725,7 @@ func doTestUtimesNano(t *testing.T, path string) { if err != nil { t.Fatal(err) } - err = compareUtimes(tc.out, [2]syscall.Timespec{st.Atim, st.Mtim}) + err = compareUtimes(tc.out, extractAtimeMtime(st)) if err != nil { t.Errorf("Testcase %d: %v", i, err) } |