Skip to content

Commit

Permalink
Bump memory boundary to 4Gb in test
Browse files Browse the repository at this point in the history
Test breaks in some environments where pre-existing allocations exceed 1Gb.
  • Loading branch information
dklimkin authored Jul 12, 2023
1 parent 9532f56 commit 977fcb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starlark/int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func TestIntFallback(t *testing.T) {
t.Fatalf("can't find file name of executable: %v", err)
}
// ulimit -v limits the address space in KB. Not portable.
// 1GB is enough for the Go runtime but not for the optimization.
cmd := exec.Command("/bin/sh", "-c", fmt.Sprintf("ulimit -v 1000000 && %q --entry=intfallback", exe))
// 4GB is enough for the Go runtime but not for the optimization.
cmd := exec.Command("/bin/sh", "-c", fmt.Sprintf("ulimit -v 4000000 && %q --entry=intfallback", exe))
out, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("intfallback subcommand failed: %v\n%s", err, out)
Expand Down

0 comments on commit 977fcb6

Please sign in to comment.