浏览代码

unix: correct misspelling in test output

The TestRlimitAs function has fatal output that uses the word 'suceeded'
that is a misspelling of 'succeeded'.

Change-Id: Id235c9e38338e09c5c06c4ed4a0037afc8f6f2bd
GitHub-Last-Rev: 84d6abe5768b9b2c82541ed7504e30a3a192b972
GitHub-Pull-Request: golang/sys#17
Reviewed-on: https://go-review.googlesource.com/134220
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Leigh McCulloch 7 年之前
父节点
当前提交
d0be0721c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      unix/syscall_linux_test.go

+ 1 - 1
unix/syscall_linux_test.go

@@ -178,7 +178,7 @@ func TestRlimitAs(t *testing.T) {
 	// should fail. See 'man 2 getrlimit'.
 	// should fail. See 'man 2 getrlimit'.
 	_, err = unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
 	_, err = unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
 	if err == nil {
 	if err == nil {
-		t.Fatal("Mmap: unexpectedly suceeded after setting RLIMIT_AS")
+		t.Fatal("Mmap: unexpectedly succeeded after setting RLIMIT_AS")
 	}
 	}
 
 
 	err = unix.Setrlimit(unix.RLIMIT_AS, &rlim)
 	err = unix.Setrlimit(unix.RLIMIT_AS, &rlim)