diff options
author | Russ Cox <rsc@golang.org> | 2009-04-07 00:40:50 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-04-07 00:40:50 -0700 |
commit | 4d7afea2e9f9b7dfdf0296dba8973bcb7dd608a0 (patch) | |
tree | 0d3aa9f7be767dd2b6e33a03d90820390b20831e /src/lib/os/os_test.go | |
parent | 6c253b793cb2d0014f6c3e693347484310fdee66 (diff) | |
download | golang-4d7afea2e9f9b7dfdf0296dba8973bcb7dd608a0.tar.gz |
throw away . and .. in directory listings
R=r
DELTA=13 (11 added, 0 deleted, 2 changed)
OCL=27147
CL=27154
Diffstat (limited to 'src/lib/os/os_test.go')
-rw-r--r-- | src/lib/os/os_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/os/os_test.go b/src/lib/os/os_test.go index 2f0cd883c..93a2c5e08 100644 --- a/src/lib/os/os_test.go +++ b/src/lib/os/os_test.go @@ -110,6 +110,9 @@ func testReaddirnames(dir string, contents []string, t *testing.T) { for i, m := range contents { found := false; for j, n := range s { + if n == "." || n == ".." { + t.Errorf("got %s in directory", n); + } if m == n { if found { t.Error("present twice:", m); |