]> Cypherpunks repositories - gostls13.git/commit
os: fix TestDevNullFile on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 26 Mar 2018 08:41:11 +0000 (10:41 +0200)
committerDavid du Colombier <0intro@gmail.com>
Tue, 27 Mar 2018 05:30:50 +0000 (05:30 +0000)
commit49325dc1d23b74eed40ea414c015f080acf21a32
treefcff9ea1f8a2aa17c983b4af77d63c292e2907ee
parent131901e80d5f73780328d129bd6274237318988c
os: fix TestDevNullFile on Plan 9

CL 102457 added TestDevNullFile. However, this
test is failing on Plan 9, because it checks
that /dev/null is a character device while there
are no special files on Plan 9.

We fix this issue by changing Stat to consider
all files served by the console device (#c)
as character devices.

Fixes #24534.

Change-Id: I1c60cdf25770358b908790b3fb71910fa914dec0
Reviewed-on: https://go-review.googlesource.com/102424
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/stat_plan9.go