From 2226322290fcffc4176b19ea0f20b30dab376195 Mon Sep 17 00:00:00 2001 From: Danial Klimkin Date: Wed, 12 Jul 2023 19:36:30 +0200 Subject: [PATCH] Bump memory boundary to 4Gb in test (#484) Test breaks in some environments where pre-existing allocations exceed 1Gb. --- starlark/int_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starlark/int_test.go b/starlark/int_test.go index 2a65238b..2a75ae9e 100644 --- a/starlark/int_test.go +++ b/starlark/int_test.go @@ -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)