mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
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: 84d6abe576
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>
This commit is contained in:
committed by
Ian Lance Taylor
parent
4526dd3c8b
commit
d0be0721c3
@@ -178,7 +178,7 @@ func TestRlimitAs(t *testing.T) {
|
||||
// should fail. See 'man 2 getrlimit'.
|
||||
_, err = unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user