mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-01 05:28:30 +00:00
keywords: time keyword 9 postition decimal
Matching with the FreeBSD standard format Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
fca9d4b5b6
commit
6adcc98b22
2 changed files with 5 additions and 5 deletions
|
@ -107,9 +107,9 @@ func TestTimeComparison(t *testing.T) {
|
|||
|
||||
// This is the format of time from FreeBSD
|
||||
spec := `
|
||||
/set type=file time=0.000000000
|
||||
/set type=file time=5.000000000
|
||||
. type=dir
|
||||
file time=0.000000000
|
||||
file time=5.000000000
|
||||
..
|
||||
`
|
||||
|
||||
|
@ -118,7 +118,7 @@ func TestTimeComparison(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
// This is what mode we're checking for. Round integer of epoch seconds
|
||||
epoch := time.Unix(0, 0)
|
||||
epoch := time.Unix(5, 0)
|
||||
if err := os.Chtimes(fh.Name(), epoch, epoch); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue