summaryrefslogtreecommitdiff
path: root/src/syscall/syscall_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2021-03-13 16:52:16 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2021-03-14 17:56:50 +0000
commit061a6903a232cb868780b1e724a75bf92a728489 (patch)
treee8dc88c37a5e79e1aa138dffbeb70439543ee54c /src/syscall/syscall_test.go
parent88b8a1608987d494f3f29618e7524e61712c31ba (diff)
downloadgo-git-061a6903a232cb868780b1e724a75bf92a728489.tar.gz
all: add internal/itoa package
This replaces five implementations scattered across low level packages. (And I plan to use it in a sixth soon.) Three of the five were byte-for-byte identical. Change-Id: I3bbbeeac63723a487986c912b604e10ad1e042f4 Reviewed-on: https://go-review.googlesource.com/c/go/+/301549 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Diffstat (limited to 'src/syscall/syscall_test.go')
-rw-r--r--src/syscall/syscall_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/syscall/syscall_test.go b/src/syscall/syscall_test.go
index 5390f8aace..b2b9463b0f 100644
--- a/src/syscall/syscall_test.go
+++ b/src/syscall/syscall_test.go
@@ -5,7 +5,6 @@
package syscall_test
import (
- "fmt"
"internal/testenv"
"os"
"runtime"
@@ -33,22 +32,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 := syscall.Itoa(i)
- f := fmt.Sprint(i)
- if s != f {
- t.Fatalf("itoa(%d) = %s, want %s", i, s, f)
- }
-}
-
// Check that permuting child process fds doesn't interfere with
// reporting of fork/exec status. See Issue 14979.
func TestExecErrPermutedFds(t *testing.T) {