Skip to content

Commit

Permalink
add full path
Browse files Browse the repository at this point in the history
  • Loading branch information
winglq committed Dec 17, 2024
1 parent 1d367e6 commit a1872ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion posixtest/posixtest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package posixtest

import "testing"
import (
"testing"
)

func TestAll(t *testing.T) {
for k, fn := range All {
Expand Down
5 changes: 3 additions & 2 deletions posixtest/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ func RenameOpenDir(t *testing.T, mnt string) {
// ReadDir creates 110 files one by one, checking that we get the expected
// entries after each file creation.
func ReadDir(t *testing.T, mnt string) {
fmt.Println(mnt)
want := map[string]bool{}
// 40 bytes of filename, so 110 entries overflows a
// 4096 page.
Expand Down Expand Up @@ -497,12 +498,12 @@ func ReadDir(t *testing.T, mnt string) {
}
for k := range got {
if !want[k] {
t.Errorf("got extra entry %q", k)
t.Errorf("got extra entry %q", filepath.Join(mnt, k))
}
}
for k := range want {
if !got[k] {
t.Errorf("missing entry %q", k)
t.Errorf("missing entry %q", filepath.Join(mnt, k))
}
}
}
Expand Down

0 comments on commit a1872ac

Please sign in to comment.