]> Cypherpunks repositories - gostls13.git/commit
os: fix TestMkdirAllAtSlash on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 2 Feb 2015 16:40:47 +0000 (17:40 +0100)
committerDavid du Colombier <0intro@gmail.com>
Mon, 2 Feb 2015 17:01:45 +0000 (17:01 +0000)
commit187cccbde167f6979fb026524eea1004ec1d625a
treeb250d0bf1df21035526eb8495505abc049d7d7cc
parent3bf005cea365639bb65cd52d9eebe7601ab5a74f
os: fix TestMkdirAllAtSlash on Plan 9

Since CL 3676, the TestMkdirAllAtSlash test
depends on syscall.EROFS, which isn't defined
on Plan 9.

This change works around this issue by
defining a system dependent isReadonlyError
function.

Change-Id: If972fd2fe4828ee3bcb8537ea7f4ba29f7a87619
Reviewed-on: https://go-review.googlesource.com/3696
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/os_unix_test.go
src/os/path_test.go