unix: correct misspelling in test output

The TestRlimitAs function has fatal output that uses the word 'suceeded'
that is a misspelling of 'succeeded'.
This commit is contained in:
Leigh McCulloch
2018-09-09 03:29:37 +00:00
parent 917fdcba13
commit 84d6abe576

View File

@@ -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)