common/linux/uname_test.go

16 lines
267 B
Go
Raw Normal View History

2022-02-04 12:34:13 +00:00
package linux
import "testing"
func TestGetUname(t *testing.T) {
uname, err := GetUname("smrdnv")
if err != nil {
t.Fatalf("failed to get uname with error: %e", err)
}
if len(uname) < 1 {
t.Fatalf("failed to get uname")
} else {
t.Logf("%s", uname)
}
}