mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os: new FileInfo, FileMode types + update tree
R=golang-dev, r, r, gri, bradfitz, iant, iant, nigeltao, n13m3y3r CC=golang-dev https://golang.org/cl/5416060
This commit is contained in:
parent
03823b881c
commit
8dce57e169
50 changed files with 620 additions and 525 deletions
|
|
@ -190,8 +190,8 @@ func TestDirJoin(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("stat of %s: %v", name, err)
|
||||
}
|
||||
if gfi.Ino != wfi.Ino {
|
||||
t.Errorf("%s got different inode", name)
|
||||
if !gfi.(*os.FileStat).SameFile(wfi.(*os.FileStat)) {
|
||||
t.Errorf("%s got different file", name)
|
||||
}
|
||||
}
|
||||
test(Dir("/etc/"), "/hosts")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue