Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
985893ac
Commit
985893ac
authored
Jan 18, 2014
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: fix build
R=golang-codereviews, iant CC=golang-codereviews
https://golang.org/cl/54000043
parent
3baa98f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
rlimit_unix_test.go
src/pkg/syscall/rlimit_unix_test.go
+9
-1
No files found.
src/pkg/syscall/rlimit_unix_test.go
View file @
985893ac
...
...
@@ -7,6 +7,7 @@
package
syscall_test
import
(
"runtime"
"syscall"
"testing"
)
...
...
@@ -34,7 +35,14 @@ func TestRlimit(t *testing.T) {
set
=
rlimit
set
.
Cur
=
set
.
Max
-
1
if
set
!=
get
{
t
.
Fatalf
(
"Rlimit: change failed: wanted %#v got %#v"
,
set
,
get
)
// Seems like Darwin requires some privilege to
// increse the soft limit of rlimit sandbox, though
// Setrlimit never reports error.
switch
runtime
.
GOOS
{
case
"darwin"
:
default
:
t
.
Fatalf
(
"Rlimit: change failed: wanted %#v got %#v"
,
set
,
get
)
}
}
err
=
syscall
.
Setrlimit
(
syscall
.
RLIMIT_NOFILE
,
&
rlimit
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment