mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 23:27:31 -04:00
unix: enable TestUname for all GOOSes
Change-Id: I0f9bbda1053bea93b00e47a2d90f380d83c5eb16 Reviewed-on: https://go-review.googlesource.com/82895 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
19b530ce1b
commit
b8f5ef3219
@@ -295,13 +295,3 @@ func TestCapRightsSetAndClear(t *testing.T) {
|
|||||||
t.Fatalf("Wrong rights set")
|
t.Fatalf("Wrong rights set")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUname(t *testing.T) {
|
|
||||||
var utsname unix.Utsname
|
|
||||||
err := unix.Uname(&utsname)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Uname: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
t.Logf("OS: %s/%s %s", utsname.Sysname[:], utsname.Machine[:], utsname.Release[:])
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -184,16 +184,6 @@ func TestSelect(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUname(t *testing.T) {
|
|
||||||
var utsname unix.Utsname
|
|
||||||
err := unix.Uname(&utsname)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Uname: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
t.Logf("OS: %s/%s %s", utsname.Sysname[:], utsname.Machine[:], utsname.Release[:])
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFstatat(t *testing.T) {
|
func TestFstatat(t *testing.T) {
|
||||||
defer chtmpdir(t)()
|
defer chtmpdir(t)()
|
||||||
|
|
||||||
|
|||||||
@@ -48,3 +48,13 @@ func TestItoa(t *testing.T) {
|
|||||||
t.Fatalf("itoa(%d) = %s, want %s", i, s, f)
|
t.Fatalf("itoa(%d) = %s, want %s", i, s, f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestUname(t *testing.T) {
|
||||||
|
var utsname unix.Utsname
|
||||||
|
err := unix.Uname(&utsname)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Uname: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
t.Logf("OS: %s/%s %s", utsname.Sysname[:], utsname.Machine[:], utsname.Release[:])
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user