diff options
Diffstat (limited to 'unix/syscall_test.go')
-rw-r--r-- | unix/syscall_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/unix/syscall_test.go b/unix/syscall_test.go index 7f80134..bc2a088 100644 --- a/unix/syscall_test.go +++ b/unix/syscall_test.go @@ -8,7 +8,6 @@ package unix_test import ( - "fmt" "testing" "golang.org/x/sys/unix" @@ -34,22 +33,6 @@ func TestEnv(t *testing.T) { testSetGetenv(t, "TESTENV", "") } -func TestItoa(t *testing.T) { - // Make most negative integer: 0x8000... - i := 1 - for i<<1 != 0 { - i <<= 1 - } - if i >= 0 { - t.Fatal("bad math") - } - s := unix.Itoa(i) - f := fmt.Sprint(i) - if 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) |