2014-11-08 08:21:39 +08:00
|
|
|
package sysfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"testing"
|
2014-12-31 22:12:25 +08:00
|
|
|
|
|
|
|
"github.com/hybridgroup/gobot"
|
2014-11-08 08:21:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestFilesystemOpen(t *testing.T) {
|
|
|
|
SetFilesystem(&NativeFilesystem{})
|
|
|
|
file, err := OpenFile(os.DevNull, os.O_RDONLY, 666)
|
|
|
|
gobot.Assert(t, err, nil)
|
|
|
|
var _ File = file
|
|
|
|
}
|